pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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>2.8.3</version>
  22. <relativePath>../../../../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop.contrib</groupId>
  25. <artifactId>hadoop-hdfs-bkjournal</artifactId>
  26. <version>2.8.3</version>
  27. <description>Apache Hadoop HDFS BookKeeper Journal</description>
  28. <name>Apache Hadoop HDFS BookKeeper Journal</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.component>hdfs</hadoop.component>
  32. <hadoop.common.build.dir>${basedir}/../../../../../hadoop-common-project/hadoop-common/target</hadoop.common.build.dir>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>commons-logging</groupId>
  37. <artifactId>commons-logging</artifactId>
  38. <scope>compile</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-common</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-hdfs</artifactId>
  48. <scope>provided</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.hadoop</groupId>
  52. <artifactId>hadoop-hdfs</artifactId>
  53. <type>test-jar</type>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.hadoop</groupId>
  58. <artifactId>hadoop-common</artifactId>
  59. <type>test-jar</type>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.bookkeeper</groupId>
  64. <artifactId>bookkeeper-server</artifactId>
  65. <scope>compile</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.zookeeper</groupId>
  69. <artifactId>zookeeper</artifactId>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.google.guava</groupId>
  74. <artifactId>guava</artifactId>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>junit</groupId>
  79. <artifactId>junit</artifactId>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.mockito</groupId>
  84. <artifactId>mockito-all</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. </dependencies>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-maven-plugins</artifactId>
  93. <executions>
  94. <execution>
  95. <id>compile-protoc</id>
  96. <phase>generate-sources</phase>
  97. <goals>
  98. <goal>protoc</goal>
  99. </goals>
  100. <configuration>
  101. <protocVersion>${protobuf.version}</protocVersion>
  102. <protocCommand>${protoc.path}</protocCommand>
  103. <imports>
  104. <param>${basedir}/../../../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  105. <param>${basedir}/../../../../../hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto</param>
  106. <param>${basedir}/../../../../../hadoop-hdfs-project/hadoop-hdfs/src/main/proto</param>
  107. <param>${basedir}/src/main/proto</param>
  108. </imports>
  109. <source>
  110. <directory>${basedir}/src/main/proto</directory>
  111. <includes>
  112. <include>bkjournal.proto</include>
  113. </includes>
  114. </source>
  115. <output>${project.build.directory}/generated-sources/java</output>
  116. </configuration>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.codehaus.mojo</groupId>
  122. <artifactId>findbugs-maven-plugin</artifactId>
  123. <configuration>
  124. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.rat</groupId>
  129. <artifactId>apache-rat-plugin</artifactId>
  130. <configuration>
  131. <excludes>
  132. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  133. </excludes>
  134. </configuration>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. <profiles>
  139. <profile>
  140. <id>dist</id>
  141. <build>
  142. <plugins>
  143. <plugin>
  144. <artifactId>maven-dependency-plugin</artifactId>
  145. <version>2.8</version>
  146. <executions>
  147. <execution>
  148. <id>dist</id>
  149. <phase>package</phase>
  150. <goals>
  151. <goal>copy</goal>
  152. </goals>
  153. <configuration>
  154. <artifactItems>
  155. <artifactItem>
  156. <groupId>org.apache.bookkeeper</groupId>
  157. <artifactId>bookkeeper-server</artifactId>
  158. <type>jar</type>
  159. </artifactItem>
  160. </artifactItems>
  161. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </profile>
  169. </profiles>
  170. </project>