[ 
https://jira.codehaus.org/browse/MRRESOURCES-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl-Heinz Marbaise closed MRRESOURCES-67.
------------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Karl-Heinz Marbaise

> Multiple Executions unsafe
> --------------------------
>
>                 Key: MRRESOURCES-67
>                 URL: https://jira.codehaus.org/browse/MRRESOURCES-67
>             Project: Maven Remote Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Mac & Windows
> Java 1.6 & 1.7
>            Reporter: John Patrick
>            Assignee: Karl-Heinz Marbaise
>
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to