pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-ozone</artifactId>
  20. <version>0.3.0-SNAPSHOT</version>
  21. </parent>
  22. <artifactId>hadoop-ozone-dist</artifactId>
  23. <name>Apache Hadoop Ozone Distribution</name>
  24. <packaging>pom</packaging>
  25. <version>0.3.0-SNAPSHOT</version>
  26. <properties>
  27. <file.encoding>UTF-8</file.encoding>
  28. <downloadSources>true</downloadSources>
  29. </properties>
  30. <build>
  31. <plugins>
  32. <plugin>
  33. <groupId>org.apache.maven.plugins</groupId>
  34. <artifactId>maven-dependency-plugin</artifactId>
  35. <executions>
  36. <execution>
  37. <id>copy-classpath-files</id>
  38. <phase>package</phase>
  39. <goals>
  40. <goal>copy</goal>
  41. </goals>
  42. <configuration>
  43. <outputDirectory>target/ozone-${ozone.version}/share/ozone/classpath
  44. </outputDirectory>
  45. <artifactItems>
  46. <artifactItem>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-hdds-server-scm</artifactId>
  49. <version>${hdds.version}</version>
  50. <classifier>classpath</classifier>
  51. <destFileName>hadoop-hdds-server-scm.classpath</destFileName>
  52. </artifactItem>
  53. <artifactItem>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-hdds-tools</artifactId>
  56. <version>${hdds.version}</version>
  57. <classifier>classpath</classifier>
  58. <destFileName>hadoop-hdds-tools.classpath</destFileName>
  59. </artifactItem>
  60. <artifactItem>
  61. <groupId>org.apache.hadoop</groupId>
  62. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  63. <version>${ozone.version}</version>
  64. <classifier>classpath</classifier>
  65. <destFileName>hadoop-ozone-ozone-manager.classpath
  66. </destFileName>
  67. </artifactItem>
  68. <artifactItem>
  69. <groupId>org.apache.hadoop</groupId>
  70. <artifactId>hadoop-ozone-tools</artifactId>
  71. <version>${ozone.version}</version>
  72. <classifier>classpath</classifier>
  73. <destFileName>hadoop-ozone-tools.classpath</destFileName>
  74. </artifactItem>
  75. <artifactItem>
  76. <groupId>org.apache.hadoop</groupId>
  77. <artifactId>hadoop-ozone-common</artifactId>
  78. <version>${ozone.version}</version>
  79. <classifier>classpath</classifier>
  80. <destFileName>hadoop-ozone-common.classpath</destFileName>
  81. </artifactItem>
  82. <artifactItem>
  83. <groupId>org.apache.hadoop</groupId>
  84. <artifactId>hadoop-ozone-datanode</artifactId>
  85. <version>${ozone.version}</version>
  86. <classifier>classpath</classifier>
  87. <destFileName>hadoop-ozone-datanode.classpath</destFileName>
  88. </artifactItem>
  89. </artifactItems>
  90. </configuration>
  91. </execution>
  92. <execution>
  93. <id>copy-jars</id>
  94. <phase>package</phase>
  95. <goals>
  96. <goal>copy-dependencies</goal>
  97. </goals>
  98. <configuration>
  99. <outputDirectory>target/ozone-${ozone.version}/share/ozone/lib
  100. </outputDirectory>
  101. <includeScope>runtime</includeScope>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.codehaus.mojo</groupId>
  108. <artifactId>exec-maven-plugin</artifactId>
  109. <executions>
  110. <execution>
  111. <id>dist</id>
  112. <phase>prepare-package</phase>
  113. <goals>
  114. <goal>exec</goal>
  115. </goals>
  116. <configuration>
  117. <executable>${shell-executable}</executable>
  118. <workingDirectory>${project.build.directory}</workingDirectory>
  119. <arguments>
  120. <argument>
  121. ${basedir}/dev-support/bin/dist-layout-stitching
  122. </argument>
  123. <argument>${project.build.directory}</argument>
  124. <argument>${hdds.version}</argument>
  125. </arguments>
  126. </configuration>
  127. </execution>
  128. <execution>
  129. <id>tar-ozone</id>
  130. <phase>package</phase>
  131. <goals>
  132. <goal>exec</goal>
  133. </goals>
  134. <configuration>
  135. <executable>${shell-executable}</executable>
  136. <workingDirectory>${project.build.directory}
  137. </workingDirectory>
  138. <arguments>
  139. <argument>${basedir}/dev-support/bin/dist-tar-stitching
  140. </argument>
  141. <argument>${hdds.version}</argument>
  142. <argument>${project.build.directory}</argument>
  143. </arguments>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. </plugins>
  149. </build>
  150. <dependencies>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-hdds-tools</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.hadoop</groupId>
  157. <artifactId>hadoop-hdds-server-scm</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.hadoop</groupId>
  161. <artifactId>hadoop-hdds-container-service</artifactId>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.hadoop</groupId>
  165. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.apache.hadoop</groupId>
  169. <artifactId>hadoop-ozone-tools</artifactId>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.hadoop</groupId>
  173. <artifactId>hadoop-ozone-common</artifactId>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.hadoop</groupId>
  177. <artifactId>hadoop-ozone-datanode</artifactId>
  178. </dependency>
  179. </dependencies>
  180. </project>