pom.xml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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
  16. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project</artifactId>
  21. <version>3.2.0-SNAPSHOT</version>
  22. <relativePath>../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-dist</artifactId>
  25. <version>3.2.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Distribution</description>
  27. <name>Apache Hadoop Distribution</name>
  28. <packaging>jar</packaging>
  29. <!-- Using dependencies to ensure this module is the last one -->
  30. <dependencies>
  31. <dependency>
  32. <groupId>org.apache.hadoop</groupId>
  33. <artifactId>hadoop-common</artifactId>
  34. <scope>provided</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-hdfs-client</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-mapreduce-client-app</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-yarn-api</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-client-check-invariants</artifactId>
  54. <type>pom</type>
  55. <scope>provided</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-client-check-test-invariants</artifactId>
  60. <type>pom</type>
  61. <scope>provided</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-client-integration-tests</artifactId>
  66. <scope>provided</scope>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <plugins>
  71. <plugin>
  72. <artifactId>maven-deploy-plugin</artifactId>
  73. <configuration>
  74. <skip>true</skip>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.rat</groupId>
  79. <artifactId>apache-rat-plugin</artifactId>
  80. <configuration>
  81. </configuration>
  82. </plugin>
  83. <!--
  84. The "dist" profile automatically attaches many artifacts
  85. to the module.
  86. Disable these, since we are only concerned with assembling
  87. the dist layout.
  88. -->
  89. <plugin>
  90. <artifactId>maven-jar-plugin</artifactId>
  91. <executions>
  92. <execution>
  93. <id>default-jar</id>
  94. <phase>never</phase>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <artifactId>maven-source-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <id>hadoop-java-sources</id>
  103. <phase>never</phase>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. <plugin>
  108. <artifactId>maven-javadoc-plugin</artifactId>
  109. <executions>
  110. <execution>
  111. <id>module-javadocs</id>
  112. <phase>never</phase>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <!-- Disable install plugin too, since we disabled all the artifacts -->
  117. <plugin>
  118. <artifactId>maven-install-plugin</artifactId>
  119. <executions>
  120. <execution>
  121. <id>default-install</id>
  122. <phase>never</phase>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <!-- Disable the sign plugin, since there isn't anything to sign -->
  127. <plugin>
  128. <artifactId>maven-gpg-plugin</artifactId>
  129. <version>${maven-gpg-plugin.version}</version>
  130. <executions>
  131. <execution>
  132. <id>sign-artifacts</id>
  133. <phase>never</phase>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. <plugin>
  138. <artifactId>maven-resources-plugin</artifactId>
  139. <executions>
  140. <execution>
  141. <id>copy-docker-compose</id>
  142. <goals>
  143. <goal>copy-resources</goal>
  144. </goals>
  145. <phase>prepare-package</phase>
  146. <configuration>
  147. <outputDirectory>${project.build.directory}/compose</outputDirectory>
  148. <resources>
  149. <resource>
  150. <directory>src/main/compose</directory>
  151. <filtering>true</filtering>
  152. </resource>
  153. </resources>
  154. </configuration>
  155. </execution>
  156. <execution>
  157. <id>copy-dockerfile</id>
  158. <goals>
  159. <goal>copy-resources</goal>
  160. </goals>
  161. <phase>prepare-package</phase>
  162. <configuration>
  163. <outputDirectory>${project.build.directory}</outputDirectory>
  164. <resources>
  165. <resource>
  166. <directory>src/main/docker</directory>
  167. <filtering>true</filtering>
  168. </resource>
  169. </resources>
  170. </configuration>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </build>
  176. <profiles>
  177. <profile>
  178. <id>dist</id>
  179. <activation>
  180. <activeByDefault>false</activeByDefault>
  181. <property>
  182. <name>tar</name>
  183. </property>
  184. </activation>
  185. <build>
  186. <plugins>
  187. <plugin>
  188. <groupId>org.codehaus.mojo</groupId>
  189. <artifactId>exec-maven-plugin</artifactId>
  190. <executions>
  191. <execution>
  192. <id>dist</id>
  193. <phase>prepare-package</phase>
  194. <goals>
  195. <goal>exec</goal>
  196. </goals>
  197. <configuration>
  198. <executable>${shell-executable}</executable>
  199. <workingDirectory>${project.build.directory}</workingDirectory>
  200. <requiresOnline>false</requiresOnline>
  201. <arguments>
  202. <argument>${basedir}/../dev-support/bin/dist-layout-stitching</argument>
  203. <argument>${project.version}</argument>
  204. <argument>${project.build.directory}</argument>
  205. </arguments>
  206. </configuration>
  207. </execution>
  208. <execution>
  209. <id>toolshooks</id>
  210. <phase>prepare-package</phase>
  211. <goals>
  212. <goal>exec</goal>
  213. </goals>
  214. <configuration>
  215. <executable>${shell-executable}</executable>
  216. <workingDirectory>${basedir}</workingDirectory>
  217. <requiresOnline>false</requiresOnline>
  218. <arguments>
  219. <argument>${basedir}/../dev-support/bin/dist-tools-hooks-maker</argument>
  220. <argument>${project.version}</argument>
  221. <argument>${project.build.directory}</argument>
  222. <argument>${basedir}/../hadoop-tools</argument>
  223. </arguments>
  224. </configuration>
  225. </execution>
  226. <execution>
  227. <id>tar</id>
  228. <phase>package</phase>
  229. <goals>
  230. <goal>exec</goal>
  231. </goals>
  232. <configuration>
  233. <executable>${shell-executable}</executable>
  234. <workingDirectory>${project.build.directory}</workingDirectory>
  235. <requiresOnline>false</requiresOnline>
  236. <arguments>
  237. <argument>${basedir}/../dev-support/bin/dist-tar-stitching</argument>
  238. <argument>${project.version}</argument>
  239. <argument>${project.build.directory}</argument>
  240. </arguments>
  241. </configuration>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. </plugins>
  246. </build>
  247. </profile>
  248. <profile>
  249. <id>hdsl</id>
  250. <activation>
  251. <activeByDefault>false</activeByDefault>
  252. </activation>
  253. <dependencies>
  254. <dependency>
  255. <groupId>org.apache.hadoop</groupId>
  256. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.apache.hadoop</groupId>
  260. <artifactId>hadoop-hdsl-server-scm</artifactId>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.hadoop</groupId>
  264. <artifactId>hadoop-hdsl-tools</artifactId>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.hadoop</groupId>
  268. <artifactId>hadoop-cblock-server</artifactId>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.hadoop</groupId>
  272. <artifactId>hadoop-hdsl-container-service</artifactId>
  273. </dependency>
  274. <dependency>
  275. <groupId>org.apache.hadoop</groupId>
  276. <artifactId>hadoop-ozone-objectstore-service</artifactId>
  277. </dependency>
  278. <dependency>
  279. <groupId>org.apache.hadoop</groupId>
  280. <artifactId>hadoop-hdsl-tools</artifactId>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.apache.hadoop</groupId>
  284. <artifactId>hadoop-ozone-tools</artifactId>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.apache.hadoop</groupId>
  288. <artifactId>hadoop-cblock-tools</artifactId>
  289. </dependency>
  290. </dependencies>
  291. </profile>
  292. </profiles>
  293. </project>