Advertisement
lincolnthree

#SeamForge Maven Shade

Mar 23rd, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. [prettyfaces-forge-plugin] pf-forge-plugin $ cat pom.xml
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.ocpsoft.forge.prettyfaces</groupId>
  7. <artifactId>prettyfaces-forge-plugin</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. <properties>
  10. <forge.api.version>1.0.0-SNAPSHOT</forge.api.version>
  11. </properties>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.ocpsoft</groupId>
  15. <artifactId>prettyfaces-jsf2</artifactId>
  16. <version>3.2.0</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.jboss.seam.forge</groupId>
  20. <artifactId>forge-shell-api</artifactId>
  21. <version>${forge.api.version}</version>
  22. <scope>provided</scope>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.jboss.seam.forge</groupId>
  26. <artifactId>forge-j2ee-plugins</artifactId>
  27. <version>${forge.api.version}</version>
  28. <scope>provided</scope>
  29. </dependency>
  30. </dependencies>
  31. <repositories>
  32. <repository>
  33. <id>JBOSS_NEXUS</id>
  34. <url>http://repository.jboss.org/nexus/content/groups/public</url>
  35. </repository>
  36. </repositories>
  37. <build>
  38. <plugins>
  39. <plugin>
  40. <artifactId>maven-compiler-plugin</artifactId>
  41. <configuration>
  42. <source>1.6</source>
  43. <target>1.6</target>
  44. </configuration>
  45. </plugin>
  46. <plugin>
  47. <artifactId>maven-shade-plugin</artifactId>
  48. <version>1.4</version>
  49. <executions>
  50. <execution>
  51. <phase>package</phase>
  52. <goals>
  53. <goal>shade</goal>
  54. </goals>
  55. <configuration></configuration>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. </plugins>
  60. </build>
  61. </project>
  62. [prettyfaces-forge-plugin] pf-forge-plugin $
  63. [prettyfaces-forge-plugin] pf-forge-plugin $
  64. [prettyfaces-forge-plugin] pf-forge-plugin $ shade
  65. remove make-executable setup relocate reset
  66. [prettyfaces-forge-plugin] pf-forge-plugin $ shade re
  67. remove relocate reset
  68. [prettyfaces-forge-plugin] pf-forge-plugin $ shade relocate --
  69. --pattern --shadedPattern --excludes
  70. [prettyfaces-forge-plugin] pf-forge-plugin $ shade relocate --pattern com.ocpsoft.pretty --shadedPattern com.ocpsoft.forge.pretty --excludes org.apache.commons
  71. [prettyfaces-forge-plugin] pf-forge-plugin $ cat pom.xml
  72. <?xml version="1.0" encoding="UTF-8"?>
  73. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  74. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  75. <modelVersion>4.0.0</modelVersion>
  76. <groupId>com.ocpsoft.forge.prettyfaces</groupId>
  77. <artifactId>prettyfaces-forge-plugin</artifactId>
  78. <version>1.0.0-SNAPSHOT</version>
  79. <properties>
  80. <forge.api.version>1.0.0-SNAPSHOT</forge.api.version>
  81. </properties>
  82. <dependencies>
  83. <dependency>
  84. <groupId>com.ocpsoft</groupId>
  85. <artifactId>prettyfaces-jsf2</artifactId>
  86. <version>3.2.0</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.jboss.seam.forge</groupId>
  90. <artifactId>forge-shell-api</artifactId>
  91. <version>${forge.api.version}</version>
  92. <scope>provided</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.jboss.seam.forge</groupId>
  96. <artifactId>forge-j2ee-plugins</artifactId>
  97. <version>${forge.api.version}</version>
  98. <scope>provided</scope>
  99. </dependency>
  100. </dependencies>
  101. <repositories>
  102. <repository>
  103. <id>JBOSS_NEXUS</id>
  104. <url>http://repository.jboss.org/nexus/content/groups/public</url>
  105. </repository>
  106. </repositories>
  107. <build>
  108. <plugins>
  109. <plugin>
  110. <artifactId>maven-compiler-plugin</artifactId>
  111. <configuration>
  112. <source>1.6</source>
  113. <target>1.6</target>
  114. </configuration>
  115. </plugin>
  116. <plugin>
  117. <artifactId>maven-shade-plugin</artifactId>
  118. <version>1.4</version>
  119. <executions>
  120. <execution>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>shade</goal>
  124. </goals>
  125. <configuration>
  126. <relocations>
  127. <relocation>
  128. <pattern>com.ocpsoft.pretty</pattern>
  129. <shadedPattern>com.ocpsoft.forge.pretty</shadedPattern>
  130. <excludes>
  131. <exclude>org.apache.commons</exclude>
  132. </excludes>
  133. </relocation>
  134. </relocations>
  135. </configuration>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. </project>
  142. [prettyfaces-forge-plugin] pf-forge-plugin $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement