pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. https://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-ozone</artifactId>
  21. <version>0.5.0-SNAPSHOT</version>
  22. </parent>
  23. <artifactId>hadoop-ozone-common</artifactId>
  24. <version>0.5.0-SNAPSHOT</version>
  25. <description>Apache Hadoop Ozone Common</description>
  26. <name>Apache Hadoop Ozone Common</name>
  27. <packaging>jar</packaging>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.apache.commons</groupId>
  31. <artifactId>commons-compress</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.apache.hadoop</groupId>
  35. <artifactId>hadoop-common</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.hadoop</groupId>
  39. <artifactId>hadoop-hdfs</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-hdfs-client</artifactId>
  44. <exclusions>
  45. <exclusion>
  46. <groupId>com.squareup.okhttp</groupId>
  47. <artifactId>okhttp</artifactId>
  48. </exclusion>
  49. </exclusions>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-hdds-common</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.hadoop</groupId>
  57. <artifactId>hadoop-hdds-server-framework</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-hdds-container-service</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-hdds-client</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-hdds-tools</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>junit</groupId>
  73. <artifactId>junit</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-common</artifactId>
  79. <scope>test</scope>
  80. <type>test-jar</type>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.hadoop</groupId>
  84. <artifactId>hadoop-hdfs</artifactId>
  85. <scope>test</scope>
  86. <type>test-jar</type>
  87. </dependency>
  88. </dependencies>
  89. <build>
  90. <resources>
  91. <resource>
  92. <directory>${basedir}/src/main/resources</directory>
  93. <excludes>
  94. <exclude>ozone-version-info.properties</exclude>
  95. </excludes>
  96. <filtering>false</filtering>
  97. </resource>
  98. <resource>
  99. <directory>${basedir}/src/main/resources</directory>
  100. <includes>
  101. <include>ozone-version-info.properties</include>
  102. </includes>
  103. <filtering>true</filtering>
  104. </resource>
  105. </resources>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.apache.hadoop</groupId>
  109. <artifactId>hadoop-maven-plugins</artifactId>
  110. <executions>
  111. <execution>
  112. <id>version-info</id>
  113. <phase>generate-resources</phase>
  114. <goals>
  115. <goal>version-info</goal>
  116. </goals>
  117. <configuration>
  118. <source>
  119. <directory>${basedir}/../</directory>
  120. <includes>
  121. <include>*/src/main/java/**/*.java</include>
  122. <include>*/src/main/proto/*.proto</include>
  123. </includes>
  124. </source>
  125. </configuration>
  126. </execution>
  127. <execution>
  128. <id>compile-protoc</id>
  129. <goals>
  130. <goal>protoc</goal>
  131. </goals>
  132. <configuration>
  133. <protocVersion>${protobuf.version}</protocVersion>
  134. <protocCommand>${protoc.path}</protocCommand>
  135. <imports>
  136. <param>
  137. ${basedir}/../../hadoop-hdds/common/src/main/proto/
  138. </param>
  139. <param>${basedir}/src/main/proto</param>
  140. </imports>
  141. <source>
  142. <directory>${basedir}/src/main/proto</directory>
  143. <includes>
  144. <include>OzoneManagerProtocol.proto</include>
  145. </includes>
  146. </source>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.codehaus.mojo</groupId>
  153. <artifactId>findbugs-maven-plugin</artifactId>
  154. <configuration>
  155. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. <profiles>
  161. <profile>
  162. <id>k8s-dev</id>
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <groupId>io.fabric8</groupId>
  167. <artifactId>docker-maven-plugin</artifactId>
  168. <version>0.29.0</version>
  169. <configuration>
  170. <images>
  171. <image>
  172. <name>${user.name}/ozone:${project.version}</name>
  173. <build>
  174. <dockerFileDir>${project.basedir}</dockerFileDir>
  175. </build>
  176. </image>
  177. </images>
  178. </configuration>
  179. </plugin>
  180. </plugins>
  181. </build>
  182. </profile>
  183. </profiles>
  184. </project>