Advertisement
RussellSeymour

Distribution Module POM

Feb 9th, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5.  
  6. <modelVersion>4.0.0</modelVersion>
  7.  
  8. <parent>
  9. <groupId>com.example.fire</groupId>
  10. <artifactId>fire</artifactId>
  11. <version>latest-SNAPSHOT</version>
  12. </parent>
  13.  
  14. <artifactId>distribution</artifactId>
  15.  
  16. <packaging>pom</packaging>
  17.  
  18. <name>Distribution</name>
  19.  
  20. <dependencies>
  21. <dependency>
  22. <groupId>com.example.fire</groupId>
  23. <artifactId>fire-apis</artifactId>
  24. <version>latest-SNAPSHOT</version>
  25. </dependency>
  26. </dependencies>
  27.  
  28. <build>
  29.  
  30. <pluginManagement>
  31. <plugins>
  32.  
  33. <!-- ANT Plugin -->
  34. <plugin>
  35. <groupId>org.apache.maven.plugins</groupId>
  36. <artifactId>maven-antrun-plugin</artifactId>
  37. <version>1.6</version>
  38. </plugin>
  39.  
  40. <!-- Assembly Plugin -->
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-assembly-plugin</artifactId>
  44. <version>2.2.1</version>
  45. </plugin>
  46.  
  47. </plugins>
  48. </pluginManagement>
  49.  
  50. <plugins>
  51. <plugin>
  52. <artifactId>maven-assembly-plugin</artifactId>
  53. <executions>
  54. <execution>
  55. <id>distro-assembly</id>
  56. <phase>package</phase>
  57. <goals>
  58. <goal>single</goal>
  59. </goals>
  60. <configuration>
  61. <descriptors>
  62. <descriptor>${assembler.descriptor}</descriptor>
  63. </descriptors>
  64. </configuration>
  65. </execution>
  66. </executions>
  67. </plugin>
  68.  
  69. <!-- This next section will package up the assembly the has been created -->
  70. <plugin>
  71. <artifactId>maven-antrun-plugin</artifactId>
  72. <dependencies>
  73. <dependency>
  74. <groupId>org.apache.ant</groupId>
  75. <artifactId>ant</artifactId>
  76. <version>1.8.1</version>
  77. <exclusions>
  78. <exclusion>
  79. <groupId>ant</groupId>
  80. <artifactId>ant</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. </dependencies>
  85. <executions>
  86. <execution>
  87. <id>deploy-package-assembly</id>
  88. <phase>package</phase>
  89. <configuration>
  90. <target>
  91. <echo message="Calling ANT from Maven" />
  92. </target>
  93. </configuration>
  94. <goals>
  95. <goal>single</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. </plugins>
  101. </build>
  102.  
  103. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement