Guest User

Untitled

a guest
Jan 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. <build>
  2. <plugins>
  3. <plugin>
  4. <artifactId>maven-remote-resources-plugin</artifactId>
  5. <executions>
  6. <execution>
  7. <goals>
  8. <goal>bundle</goal>
  9. </goals>
  10. </execution>
  11. </executions>
  12. <configuration>
  13. <includes>
  14. <include>**/*</include>
  15. </includes>
  16. </configuration>
  17. </plugin>
  18. </plugins>
  19. </build>
  20.  
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.apache.maven.plugins</groupId>
  24. <artifactId>maven-remote-resources-plugin</artifactId>
  25. <version>1.3</version>
  26. </dependency>
  27. </dependencies>
  28.  
  29. <build>
  30. ...
  31. <plugins>
  32. <plugin>
  33. <groupId>org.apache.maven.plugins</groupId>
  34. <artifactId>maven-remote-resources-plugin</artifactId>
  35. <version>1.3</version>
  36. <configuration>
  37. <resourceBunldes>
  38. <resourceBundle>myApp:myApp_sharedresources:${project.version}</resourceBundle>
  39. </resourceBundles>
  40. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  41. <includes>
  42. <include>theOnlyResourceIWant.properties</include>
  43. </includes>
  44. </configuration>
  45. <executions>
  46. <execution>
  47. <goals>
  48. <goal>process</goal>
  49. </goals>
  50. <phase>generate-resources</phase>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. </plugins>
  55. </build>
  56.  
  57. <dependencies>
  58. <dependency>
  59. <groupId>myApp</groupId>
  60. <artifactId>myApp_sharedresources</artifactId>
  61. <version>1.0</version>
  62. </dependency>
  63. </dependencies>
  64.  
  65. <includes></includes>
  66.  
  67. <excludes></excludes>
  68.  
  69. <plugin>
  70. <artifactId>maven-remote-resources-plugin</artifactId>
  71. <configuration>
  72. <resourceBundles>
  73. <resourceBundle>myApp:myApp_sharedresources:${project.version}</resourceBundle>
  74. </resourceBundles>
  75. <attached>false</attached>
  76. <outputDirectory>${project.build.directory}/shared-resources</outputDirectory>
  77. </configuration>
  78. <executions>
  79. <execution>
  80. <goals>
  81. <goal>process</goal>
  82. </goals>
  83. <phase>generate-resources</phase>
  84. </execution>
  85. </executions>
  86. </plugin>
  87.  
  88. <resources>
  89. <resource>
  90. <directory>${project.build.directory}/shared-resources</directory>
  91. <includes>
  92. <include>theOnlyResourceIWant.properties</include>
  93. </includes>
  94. </resource>
  95. <resource>
  96. <directory>${basedir}/src/main/resources</directory>
  97. </resource>
  98. </resources>
  99.  
  100. <plugin>
  101. <artifactId>maven-remote-resources-plugin</artifactId>
  102. <version>1.3</version>
  103. <executions>
  104. <execution>
  105. <id>process-remote-resources</id>
  106. <goals>
  107. <goal>process</goal>
  108. </goals>
  109. <configuration>
  110. <filterDelimiters>
  111. <filterDelimiter>#{*}</filterDelimiter>
  112. </filterDelimiters>
  113. [...]
  114. </configuration>
  115. </execution>
  116. </executions>
  117. </plugin>
Add Comment
Please, Sign In to add comment