You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Kulp (JIRA)" <ji...@codehaus.org> on 2013/07/08 19:25:05 UTC

[jira] (MRRESOURCES-67) Multiple Executions unsafe

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

Daniel Kulp commented on MRRESOURCES-67:
----------------------------------------


You don't specify what version of Maven you are using.  Make sure you are using Maven 3.0.5 and see if it's still a problem.

Additionally, can you try with the latest 1.5-SNAPSHOT version of remote-resources?  I've completely changes how the velocity engine is setup and resources grabbed to try and make sure they are all unique per execution.


                
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira