Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-remote-resources-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>bundle</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <includes>
- <include>**/*</include>
- </includes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-remote-resources-plugin</artifactId>
- <version>1.3</version>
- </dependency>
- </dependencies>
- <build>
- ...
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-remote-resources-plugin</artifactId>
- <version>1.3</version>
- <configuration>
- <resourceBunldes>
- <resourceBundle>myApp:myApp_sharedresources:${project.version}</resourceBundle>
- </resourceBundles>
- <outputDirectory>${project.build.outputDirectory}</outputDirectory>
- <includes>
- <include>theOnlyResourceIWant.properties</include>
- </includes>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>process</goal>
- </goals>
- <phase>generate-resources</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>myApp</groupId>
- <artifactId>myApp_sharedresources</artifactId>
- <version>1.0</version>
- </dependency>
- </dependencies>
- <includes></includes>
- <excludes></excludes>
- <plugin>
- <artifactId>maven-remote-resources-plugin</artifactId>
- <configuration>
- <resourceBundles>
- <resourceBundle>myApp:myApp_sharedresources:${project.version}</resourceBundle>
- </resourceBundles>
- <attached>false</attached>
- <outputDirectory>${project.build.directory}/shared-resources</outputDirectory>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>process</goal>
- </goals>
- <phase>generate-resources</phase>
- </execution>
- </executions>
- </plugin>
- <resources>
- <resource>
- <directory>${project.build.directory}/shared-resources</directory>
- <includes>
- <include>theOnlyResourceIWant.properties</include>
- </includes>
- </resource>
- <resource>
- <directory>${basedir}/src/main/resources</directory>
- </resource>
- </resources>
- <plugin>
- <artifactId>maven-remote-resources-plugin</artifactId>
- <version>1.3</version>
- <executions>
- <execution>
- <id>process-remote-resources</id>
- <goals>
- <goal>process</goal>
- </goals>
- <configuration>
- <filterDelimiters>
- <filterDelimiter>#{*}</filterDelimiter>
- </filterDelimiters>
- [...]
- </configuration>
- </execution>
- </executions>
- </plugin>
Add Comment
Please, Sign In to add comment