pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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-ozone</artifactId>
  21. <version>0.4.0-SNAPSHOT</version>
  22. </parent>
  23. <artifactId>hadoop-ozone-common</artifactId>
  24. <version>0.4.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-server-scm</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-hdds-container-service</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-hdds-client</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.hadoop</groupId>
  73. <artifactId>hadoop-hdds-tools</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>junit</groupId>
  77. <artifactId>junit</artifactId>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.hadoop</groupId>
  82. <artifactId>hadoop-common</artifactId>
  83. <scope>test</scope>
  84. <type>test-jar</type>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.hadoop</groupId>
  88. <artifactId>hadoop-hdfs</artifactId>
  89. <scope>test</scope>
  90. <type>test-jar</type>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <resources>
  95. <resource>
  96. <directory>${basedir}/src/main/resources</directory>
  97. <excludes>
  98. <exclude>ozone-version-info.properties</exclude>
  99. </excludes>
  100. <filtering>false</filtering>
  101. </resource>
  102. <resource>
  103. <directory>${basedir}/src/main/resources</directory>
  104. <includes>
  105. <include>ozone-version-info.properties</include>
  106. </includes>
  107. <filtering>true</filtering>
  108. </resource>
  109. </resources>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.hadoop</groupId>
  113. <artifactId>hadoop-maven-plugins</artifactId>
  114. <executions>
  115. <execution>
  116. <id>version-info</id>
  117. <phase>generate-resources</phase>
  118. <goals>
  119. <goal>version-info</goal>
  120. </goals>
  121. <configuration>
  122. <source>
  123. <directory>${basedir}/../</directory>
  124. <includes>
  125. <include>*/src/main/java/**/*.java</include>
  126. <include>*/src/main/proto/*.proto</include>
  127. </includes>
  128. </source>
  129. </configuration>
  130. </execution>
  131. <execution>
  132. <id>compile-protoc</id>
  133. <goals>
  134. <goal>protoc</goal>
  135. </goals>
  136. <configuration>
  137. <protocVersion>${protobuf.version}</protocVersion>
  138. <protocCommand>${protoc.path}</protocCommand>
  139. <imports>
  140. <param>
  141. ${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto
  142. </param>
  143. <param>
  144. ${basedir}/../../hadoop-hdds/common/src/main/proto/
  145. </param>
  146. <param>${basedir}/src/main/proto</param>
  147. </imports>
  148. <source>
  149. <directory>${basedir}/src/main/proto</directory>
  150. <includes>
  151. <include>OzoneManagerProtocol.proto</include>
  152. </includes>
  153. </source>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.codehaus.mojo</groupId>
  160. <artifactId>findbugs-maven-plugin</artifactId>
  161. <configuration>
  162. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  163. </configuration>
  164. </plugin>
  165. </plugins>
  166. </build>
  167. </project>