John Patrick created MRRESOURCES-67:
---------------------------------------
Summary: Multiple Executions unsafe
Key: MRRESOURCES-67
URL: https://jira.codehaus.org/browse/MRRESOURCES-67
Project: Maven 2.x Remote Resources Plugin
Issue Type: Bug
Affects Versions: 1.4
Environment: Mac & Windows
Java 1.6 & 1.7
Reporter: John Patrick
When using executions, the resourceBundles in the 1st are using in all
subsequent executions.
Have a simple jar(s) which contain
src/main/resources/WEB-INF/classes/client.properties
Those are built in project-web-client-X and project-web-client-Y. The jar
contain the correct client.properties.
Within the war pom I define.
<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-remote-resoruces-plugin</artifactId>
<executions>
<execution>
<id>client-X</id>
<phase>process-resources</phase>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory/${project.build.finalName}-client-X</outputDirectory>
<resourceBundles>
<resourceBundle>${project.groupId}:project-web-client-X:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
</execution>
<execution>
<id>client-Y</id>
<phase>process-resources</phase>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory/${project.build.finalName}-client-Y</outputDirectory>
<resourceBundles>
<resourceBundle>${project.groupId}:project-web-client-Y:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
</execution>
<execution>
<id>client-Z</id>
<phase>process-resources</phase>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory/${project.build.finalName}-client-Z</outputDirectory>
<resourceBundles>
<resourceBundle>${project.groupId}:project-web-client-Z:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
</execution>
</executions>
[...]
I do a clean install and I get client-X client.properties in the following
locations. Not the one i'm expecting using the resource bundles above.
${project.build.directory/${project.build.finalName}-client-X/WEB-INF/classes/client.properties
${project.build.directory/${project.build.finalName}-client-Y/WEB-INF/classes/client.properties
${project.build.directory/${project.build.finalName}-client-Z/WEB-INF/classes/client.properties
John
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira