pom.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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.5.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.5.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>prepare-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-s3gateway</artifactId>
  63. <version>${ozone.version}</version>
  64. <classifier>classpath</classifier>
  65. <destFileName>hadoop-ozone-s3gateway.classpath</destFileName>
  66. </artifactItem>
  67. <artifactItem>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  70. <version>${ozone.version}</version>
  71. <classifier>classpath</classifier>
  72. <destFileName>hadoop-ozone-ozone-manager.classpath
  73. </destFileName>
  74. </artifactItem>
  75. <artifactItem>
  76. <groupId>org.apache.hadoop</groupId>
  77. <artifactId>hadoop-ozone-tools</artifactId>
  78. <version>${ozone.version}</version>
  79. <classifier>classpath</classifier>
  80. <destFileName>hadoop-ozone-tools.classpath</destFileName>
  81. </artifactItem>
  82. <artifactItem>
  83. <groupId>org.apache.hadoop</groupId>
  84. <artifactId>hadoop-ozone-filesystem</artifactId>
  85. <version>${ozone.version}</version>
  86. <classifier>classpath</classifier>
  87. <destFileName>hadoop-ozone-filesystem.classpath</destFileName>
  88. </artifactItem>
  89. <artifactItem>
  90. <groupId>org.apache.hadoop</groupId>
  91. <artifactId>hadoop-ozone-common</artifactId>
  92. <version>${ozone.version}</version>
  93. <classifier>classpath</classifier>
  94. <destFileName>hadoop-ozone-common.classpath</destFileName>
  95. </artifactItem>
  96. <artifactItem>
  97. <groupId>org.apache.hadoop</groupId>
  98. <artifactId>hadoop-ozone-datanode</artifactId>
  99. <version>${ozone.version}</version>
  100. <classifier>classpath</classifier>
  101. <destFileName>hadoop-ozone-datanode.classpath</destFileName>
  102. </artifactItem>
  103. <artifactItem>
  104. <groupId>org.apache.hadoop</groupId>
  105. <artifactId>hadoop-ozone-recon</artifactId>
  106. <version>${ozone.version}</version>
  107. <classifier>classpath</classifier>
  108. <destFileName>hadoop-ozone-recon.classpath</destFileName>
  109. </artifactItem>
  110. </artifactItems>
  111. </configuration>
  112. </execution>
  113. <execution>
  114. <id>copy-jars</id>
  115. <phase>prepare-package</phase>
  116. <goals>
  117. <goal>copy-dependencies</goal>
  118. </goals>
  119. <configuration>
  120. <outputDirectory>target/ozone-${ozone.version}/share/ozone/lib
  121. </outputDirectory>
  122. <includeScope>runtime</includeScope>
  123. </configuration>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.codehaus.mojo</groupId>
  129. <artifactId>exec-maven-plugin</artifactId>
  130. <executions>
  131. <execution>
  132. <id>dist</id>
  133. <phase>prepare-package</phase>
  134. <goals>
  135. <goal>exec</goal>
  136. </goals>
  137. <configuration>
  138. <executable>${shell-executable}</executable>
  139. <workingDirectory>${project.build.directory}</workingDirectory>
  140. <arguments>
  141. <argument>
  142. ${basedir}/dev-support/bin/dist-layout-stitching
  143. </argument>
  144. <argument>${project.build.directory}</argument>
  145. <argument>${hdds.version}</argument>
  146. </arguments>
  147. </configuration>
  148. </execution>
  149. <execution>
  150. <id>tar-ozone</id>
  151. <phase>package</phase>
  152. <goals>
  153. <goal>exec</goal>
  154. </goals>
  155. <configuration>
  156. <executable>${shell-executable}</executable>
  157. <workingDirectory>${project.build.directory}
  158. </workingDirectory>
  159. <arguments>
  160. <argument>${basedir}/dev-support/bin/dist-tar-stitching
  161. </argument>
  162. <argument>${hdds.version}</argument>
  163. <argument>${project.build.directory}</argument>
  164. </arguments>
  165. </configuration>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. <!-- there is no problem to have multiple versions of the jar files from
  170. here. As the dependencies will be handled in a separated way with
  171. separated classpath definitions-->
  172. <plugin>
  173. <artifactId>maven-enforcer-plugin</artifactId>
  174. <executions>
  175. <execution>
  176. <id>depcheck</id>
  177. <phase></phase>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. </plugins>
  182. </build>
  183. <dependencies>
  184. <dependency>
  185. <groupId>org.apache.hadoop</groupId>
  186. <artifactId>hadoop-hdds-tools</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.hadoop</groupId>
  190. <artifactId>hadoop-hdds-server-scm</artifactId>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.apache.hadoop</groupId>
  194. <artifactId>hadoop-hdds-container-service</artifactId>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.hadoop</groupId>
  198. <artifactId>hadoop-ozone-s3gateway</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.apache.hadoop</groupId>
  202. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.apache.hadoop</groupId>
  206. <artifactId>hadoop-ozone-tools</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.apache.hadoop</groupId>
  210. <artifactId>hadoop-ozone-filesystem-lib-current</artifactId>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.apache.hadoop</groupId>
  214. <artifactId>hadoop-ozone-filesystem-lib-legacy</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.hadoop</groupId>
  218. <artifactId>hadoop-ozone-common</artifactId>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.hadoop</groupId>
  222. <artifactId>hadoop-ozone-datanode</artifactId>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.hadoop</groupId>
  226. <artifactId>hadoop-hdds-docs</artifactId>
  227. </dependency>
  228. </dependencies>
  229. </project>