[ 
https://jira.codehaus.org/browse/MRRESOURCES-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314400#comment-314400
 ] 

John Patrick commented on MRRESOURCES-67:
-----------------------------------------

To confirm

client-X jar contains (aka jar 1)
client.properties (aka file 1)
client-X.properties (aka file 2)

client-Y jar contains (aka jar 2)
client.properties (aka file 3)
client-Y.properties (aka file 4)

client-Z jar contains (aka jar 3)
client.properties (aka file 5)
client-Z.properties (aka file 6)

So after a build I get the following;
${project.build.directory/${project.build.finalName}-client-X/WEB-INF/classes/client.properties
 (file 1)
${project.build.directory/${project.build.finalName}-client-X/WEB-INF/classes/client-X.properties
 (file 2)
${project.build.directory/${project.build.finalName}-client-Y/WEB-INF/classes/client.properties
 (file 1 not file 3 as i expect)

${project.build.directory/${project.build.finalName}-client-Y/WEB-INF/classes/client-Y.properties
 (file 4)
${project.build.directory/${project.build.finalName}-client-Z/WEB-INF/classes/client.properties(file
 1 not file 5 as i expect)
${project.build.directory/${project.build.finalName}-client-Z/WEB-INF/classes/client-Z.properties
 (file 6)


                
> 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

        

Reply via email to