pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. https://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 https://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. <docker.image>apache/hadoop:${project.version}</docker.image>
  30. </properties>
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-dependency-plugin</artifactId>
  36. <executions>
  37. <execution>
  38. <id>copy-classpath-files</id>
  39. <phase>prepare-package</phase>
  40. <goals>
  41. <goal>copy</goal>
  42. </goals>
  43. <configuration>
  44. <outputDirectory>target/ozone-${ozone.version}/share/ozone/classpath
  45. </outputDirectory>
  46. <artifactItems>
  47. <artifactItem>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-hdds-server-scm</artifactId>
  50. <version>${hdds.version}</version>
  51. <classifier>classpath</classifier>
  52. <destFileName>hadoop-hdds-server-scm.classpath</destFileName>
  53. </artifactItem>
  54. <artifactItem>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-hdds-tools</artifactId>
  57. <version>${hdds.version}</version>
  58. <classifier>classpath</classifier>
  59. <destFileName>hadoop-hdds-tools.classpath</destFileName>
  60. </artifactItem>
  61. <artifactItem>
  62. <groupId>org.apache.hadoop</groupId>
  63. <artifactId>hadoop-ozone-s3gateway</artifactId>
  64. <version>${ozone.version}</version>
  65. <classifier>classpath</classifier>
  66. <destFileName>hadoop-ozone-s3gateway.classpath</destFileName>
  67. </artifactItem>
  68. <artifactItem>
  69. <groupId>org.apache.hadoop</groupId>
  70. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  71. <version>${ozone.version}</version>
  72. <classifier>classpath</classifier>
  73. <destFileName>hadoop-ozone-ozone-manager.classpath
  74. </destFileName>
  75. </artifactItem>
  76. <artifactItem>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-ozone-tools</artifactId>
  79. <version>${ozone.version}</version>
  80. <classifier>classpath</classifier>
  81. <destFileName>hadoop-ozone-tools.classpath</destFileName>
  82. </artifactItem>
  83. <artifactItem>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-ozone-filesystem</artifactId>
  86. <version>${ozone.version}</version>
  87. <classifier>classpath</classifier>
  88. <destFileName>hadoop-ozone-filesystem.classpath</destFileName>
  89. </artifactItem>
  90. <artifactItem>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-ozone-common</artifactId>
  93. <version>${ozone.version}</version>
  94. <classifier>classpath</classifier>
  95. <destFileName>hadoop-ozone-common.classpath</destFileName>
  96. </artifactItem>
  97. <artifactItem>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-ozone-datanode</artifactId>
  100. <version>${ozone.version}</version>
  101. <classifier>classpath</classifier>
  102. <destFileName>hadoop-ozone-datanode.classpath</destFileName>
  103. </artifactItem>
  104. <artifactItem>
  105. <groupId>org.apache.hadoop</groupId>
  106. <artifactId>hadoop-ozone-recon</artifactId>
  107. <version>${ozone.version}</version>
  108. <classifier>classpath</classifier>
  109. <destFileName>hadoop-ozone-recon.classpath</destFileName>
  110. </artifactItem>
  111. <artifactItem>
  112. <groupId>org.apache.hadoop</groupId>
  113. <artifactId>hadoop-ozone-upgrade</artifactId>
  114. <version>${ozone.version}</version>
  115. <classifier>classpath</classifier>
  116. <destFileName>hadoop-ozone-upgrade.classpath</destFileName>
  117. </artifactItem>
  118. </artifactItems>
  119. </configuration>
  120. </execution>
  121. <execution>
  122. <id>copy-jars</id>
  123. <phase>prepare-package</phase>
  124. <goals>
  125. <goal>copy-dependencies</goal>
  126. </goals>
  127. <configuration>
  128. <outputDirectory>target/ozone-${ozone.version}/share/ozone/lib
  129. </outputDirectory>
  130. <includeScope>runtime</includeScope>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. <plugin>
  136. <artifactId>maven-resources-plugin</artifactId>
  137. <version>3.1.0</version>
  138. <executions>
  139. <execution>
  140. <id>copy-compose-files</id>
  141. <phase>compile</phase>
  142. <goals>
  143. <goal>copy-resources</goal>
  144. </goals>
  145. <configuration>
  146. <outputDirectory>${basedir}/target/compose</outputDirectory>
  147. <resources>
  148. <resource>
  149. <directory>src/main/compose</directory>
  150. <filtering>true</filtering>
  151. </resource>
  152. </resources>
  153. </configuration>
  154. </execution>
  155. <execution>
  156. <id>copy-k8s</id>
  157. <phase>compile</phase>
  158. <goals>
  159. <goal>copy-resources</goal>
  160. </goals>
  161. <configuration>
  162. <outputDirectory>${basedir}/target/k8s</outputDirectory>
  163. <resources>
  164. <resource>
  165. <directory>src/main/k8s</directory>
  166. <filtering>true</filtering>
  167. </resource>
  168. </resources>
  169. </configuration>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.codehaus.mojo</groupId>
  175. <artifactId>exec-maven-plugin</artifactId>
  176. <executions>
  177. <execution>
  178. <id>dist</id>
  179. <phase>prepare-package</phase>
  180. <goals>
  181. <goal>exec</goal>
  182. </goals>
  183. <configuration>
  184. <executable>${shell-executable}</executable>
  185. <workingDirectory>${project.build.directory}</workingDirectory>
  186. <arguments>
  187. <argument>
  188. ${basedir}/dev-support/bin/dist-layout-stitching
  189. </argument>
  190. <argument>${project.build.directory}</argument>
  191. <argument>${hdds.version}</argument>
  192. </arguments>
  193. </configuration>
  194. </execution>
  195. <execution>
  196. <id>tar-ozone</id>
  197. <phase>package</phase>
  198. <goals>
  199. <goal>exec</goal>
  200. </goals>
  201. <configuration>
  202. <executable>${shell-executable}</executable>
  203. <workingDirectory>${project.build.directory}
  204. </workingDirectory>
  205. <arguments>
  206. <argument>${basedir}/dev-support/bin/dist-tar-stitching
  207. </argument>
  208. <argument>${hdds.version}</argument>
  209. <argument>${project.build.directory}</argument>
  210. </arguments>
  211. </configuration>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. <!-- there is no problem to have multiple versions of the jar files from
  216. here. As the dependencies will be handled in a separated way with
  217. separated classpath definitions-->
  218. <plugin>
  219. <artifactId>maven-enforcer-plugin</artifactId>
  220. <executions>
  221. <execution>
  222. <id>depcheck</id>
  223. <phase></phase>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. </plugins>
  228. </build>
  229. <dependencies>
  230. <dependency>
  231. <groupId>org.apache.hadoop</groupId>
  232. <artifactId>hadoop-hdds-tools</artifactId>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.hadoop</groupId>
  236. <artifactId>hadoop-hdds-server-scm</artifactId>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.apache.hadoop</groupId>
  240. <artifactId>hadoop-hdds-container-service</artifactId>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.hadoop</groupId>
  244. <artifactId>hadoop-ozone-s3gateway</artifactId>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.hadoop</groupId>
  248. <artifactId>hadoop-ozone-ozone-manager</artifactId>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.apache.hadoop</groupId>
  252. <artifactId>hadoop-ozone-tools</artifactId>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.hadoop</groupId>
  256. <artifactId>hadoop-ozone-filesystem-lib-current</artifactId>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.apache.hadoop</groupId>
  260. <artifactId>hadoop-ozone-filesystem-lib-legacy</artifactId>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.hadoop</groupId>
  264. <artifactId>hadoop-ozone-common</artifactId>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.hadoop</groupId>
  268. <artifactId>hadoop-ozone-datanode</artifactId>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.hadoop</groupId>
  272. <artifactId>hadoop-ozone-recon</artifactId>
  273. </dependency>
  274. <dependency>
  275. <groupId>org.apache.hadoop</groupId>
  276. <artifactId>hadoop-hdds-docs</artifactId>
  277. </dependency>
  278. <dependency>
  279. <groupId>org.apache.hadoop</groupId>
  280. <artifactId>hadoop-ozone-upgrade</artifactId>
  281. </dependency>
  282. </dependencies>
  283. <profiles>
  284. <profile>
  285. <id>k8s-dev</id>
  286. <properties>
  287. <docker.image>${user.name}/ozone:${project.version}</docker.image>
  288. </properties>
  289. <build>
  290. <plugins>
  291. <plugin>
  292. <groupId>io.fabric8</groupId>
  293. <artifactId>docker-maven-plugin</artifactId>
  294. <version>0.29.0</version>
  295. <executions>
  296. <execution>
  297. <goals>
  298. <goal>build</goal>
  299. </goals>
  300. <phase>package</phase>
  301. </execution>
  302. </executions>
  303. <configuration>
  304. <images>
  305. <image>
  306. <name>${docker.image}</name>
  307. <build>
  308. <dockerFileDir>
  309. ${project.build.directory}/ozone-${project.version}
  310. </dockerFileDir>
  311. </build>
  312. </image>
  313. </images>
  314. </configuration>
  315. </plugin>
  316. </plugins>
  317. </build>
  318. </profile>
  319. <profile>
  320. <id>k8s-dev-push</id>
  321. <build>
  322. <plugins>
  323. <plugin>
  324. <groupId>io.fabric8</groupId>
  325. <artifactId>docker-maven-plugin</artifactId>
  326. <version>0.29.0</version>
  327. <executions>
  328. <execution>
  329. <goals>
  330. <goal>push</goal>
  331. </goals>
  332. <phase>package</phase>
  333. </execution>
  334. </executions>
  335. </plugin>
  336. </plugins>
  337. </build>
  338. </profile>
  339. </profiles>
  340. </project>