pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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.0-SNAPSHOT</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.0-SNAPSHOT</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-client</artifactId>
  53. <scope>provided</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.hadoop</groupId>
  57. <artifactId>hadoop-hdfs</artifactId>
  58. <type>test-jar</type>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.hadoop</groupId>
  63. <artifactId>hadoop-common</artifactId>
  64. <type>test-jar</type>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.bookkeeper</groupId>
  69. <artifactId>bookkeeper-server</artifactId>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.zookeeper</groupId>
  74. <artifactId>zookeeper</artifactId>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.google.guava</groupId>
  79. <artifactId>guava</artifactId>
  80. <scope>compile</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>junit</groupId>
  84. <artifactId>junit</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.mockito</groupId>
  89. <artifactId>mockito-all</artifactId>
  90. <scope>test</scope>
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.apache.hadoop</groupId>
  97. <artifactId>hadoop-maven-plugins</artifactId>
  98. <executions>
  99. <execution>
  100. <id>compile-protoc</id>
  101. <phase>generate-sources</phase>
  102. <goals>
  103. <goal>protoc</goal>
  104. </goals>
  105. <configuration>
  106. <protocVersion>${protobuf.version}</protocVersion>
  107. <protocCommand>${protoc.path}</protocCommand>
  108. <imports>
  109. <param>${basedir}/../../../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  110. <param>${basedir}/../../../../../hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto</param>
  111. <param>${basedir}/src/main/proto</param>
  112. </imports>
  113. <source>
  114. <directory>${basedir}/src/main/proto</directory>
  115. <includes>
  116. <include>bkjournal.proto</include>
  117. </includes>
  118. </source>
  119. <output>${project.build.directory}/generated-sources/java</output>
  120. </configuration>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.codehaus.mojo</groupId>
  126. <artifactId>findbugs-maven-plugin</artifactId>
  127. <configuration>
  128. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.rat</groupId>
  133. <artifactId>apache-rat-plugin</artifactId>
  134. <configuration>
  135. <excludes>
  136. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  137. </excludes>
  138. </configuration>
  139. </plugin>
  140. </plugins>
  141. </build>
  142. <profiles>
  143. <profile>
  144. <id>dist</id>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <artifactId>maven-dependency-plugin</artifactId>
  149. <version>2.8</version>
  150. <executions>
  151. <execution>
  152. <id>dist</id>
  153. <phase>package</phase>
  154. <goals>
  155. <goal>copy</goal>
  156. </goals>
  157. <configuration>
  158. <artifactItems>
  159. <artifactItem>
  160. <groupId>org.apache.bookkeeper</groupId>
  161. <artifactId>bookkeeper-server</artifactId>
  162. <type>jar</type>
  163. </artifactItem>
  164. </artifactItems>
  165. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  166. </configuration>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </profile>
  173. </profiles>
  174. </project>