Update Resources On Frame Deactivation Doesn't Filter Maven Properties
Update Resources On Frame Deactivation Doesn't Filter Maven Properties.
With Maven resource filtering turned on in your pom:
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
Updating Resources via control-F10 or by Update Resources on Frame Deactivation - will not filter a Maven property such as ${project.version}.
While Updating, you must use Update Classes and Resources option of Update (control-F10) for filtering to take place.
Updating resources is shown in the IDEA Maven settings to be bound to the Maven 'process-resources' phase, in which case, updating resources should process the Maven Resource Plugin which is bound to the process-resources phase.
http://maven.apache.org/plugins/maven-resources-plugin/index.html
Why are resources only filtered and processed during Update Classes, not just Update Resources? Because of this, we cannot use Update Resources on Frame Deactivation which is simply bound to Update Resources - not Update Classes and Resources. When files are edited which have Maven properties, that file is broken because the property ${my.property} was not replaced with its value during Update Resources.
Please confirm this is a bug.
Thanks.
Please sign in to leave a comment.
In the latest IDEA 10.5 EAP build should contain option to update classes and resources on frame deactivation.
However I agree that Maven resources should be processed on 'update resources' as well. Feel free to create an issue in our tracker:
http://youtrack.jetbrains.net/issues/IDEA.
>
>
>
>
>
>
>
>
>
>
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"