pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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-project</artifactId>
  21. <version>3.4.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-nfs</artifactId>
  25. <version>3.4.0-SNAPSHOT</version>
  26. <packaging>jar</packaging>
  27. <name>Apache Hadoop NFS</name>
  28. <description>Apache Hadoop NFS library</description>
  29. <properties>
  30. <maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
  31. <kerberos.realm>LOCALHOST</kerberos.realm>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <!-- Used, even though 'mvn dependency:analyze' doesn't find it -->
  36. <groupId>org.apache.hadoop</groupId>
  37. <artifactId>hadoop-annotations</artifactId>
  38. <scope>provided</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-common</artifactId>
  48. <scope>test</scope>
  49. <type>test-jar</type>
  50. </dependency>
  51. <dependency>
  52. <groupId>junit</groupId>
  53. <artifactId>junit</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.mockito</groupId>
  58. <artifactId>mockito-core</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>commons-logging</groupId>
  63. <artifactId>commons-logging</artifactId>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>javax.servlet</groupId>
  68. <artifactId>javax.servlet-api</artifactId>
  69. <scope>provided</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.slf4j</groupId>
  73. <artifactId>slf4j-api</artifactId>
  74. <scope>compile</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>log4j</groupId>
  78. <artifactId>log4j</artifactId>
  79. <scope>runtime</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.slf4j</groupId>
  83. <artifactId>slf4j-log4j12</artifactId>
  84. <scope>runtime</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>io.netty</groupId>
  88. <artifactId>netty-all</artifactId>
  89. <scope>compile</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop.thirdparty</groupId>
  93. <artifactId>hadoop-shaded-guava</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.assertj</groupId>
  97. <artifactId>assertj-core</artifactId>
  98. <scope>test</scope>
  99. </dependency>
  100. </dependencies>
  101. <build>
  102. <plugins>
  103. <plugin>
  104. <groupId>com.github.spotbugs</groupId>
  105. <artifactId>spotbugs-maven-plugin</artifactId>
  106. <configuration>
  107. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
  108. </excludeFilterFile>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-enforcer-plugin</artifactId>
  114. <dependencies>
  115. <dependency>
  116. <groupId>de.skuzzle.enforcer</groupId>
  117. <artifactId>restrict-imports-enforcer-rule</artifactId>
  118. <version>${restrict-imports.enforcer.version}</version>
  119. </dependency>
  120. </dependencies>
  121. <executions>
  122. <execution>
  123. <id>banned-illegal-imports</id>
  124. <phase>process-sources</phase>
  125. <goals>
  126. <goal>enforce</goal>
  127. </goals>
  128. <configuration>
  129. <rules>
  130. <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
  131. <includeTestCode>true</includeTestCode>
  132. <reason>Use hadoop-common provided implementations rather than the one provided by Guava</reason>
  133. <bannedImports>
  134. <bannedImport>org.apache.hadoop.thirdparty.com.google.common.base.Preconditions</bannedImport>
  135. <bannedImport>com.google.common.base.Preconditions</bannedImport>
  136. </bannedImports>
  137. </restrictImports>
  138. </rules>
  139. </configuration>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. </plugins>
  144. </build>
  145. <profiles>
  146. <profile>
  147. <id>dist</id>
  148. <activation>
  149. <activeByDefault>false</activeByDefault>
  150. </activation>
  151. <build>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-assembly-plugin</artifactId>
  156. <dependencies>
  157. <dependency>
  158. <groupId>org.apache.hadoop</groupId>
  159. <artifactId>hadoop-assemblies</artifactId>
  160. <version>${project.version}</version>
  161. </dependency>
  162. </dependencies>
  163. <executions>
  164. <execution>
  165. <id>dist</id>
  166. <phase>package</phase>
  167. <goals>
  168. <goal>single</goal>
  169. </goals>
  170. <configuration>
  171. <finalName>${project.artifactId}-${project.version}</finalName>
  172. <appendAssemblyId>false</appendAssemblyId>
  173. <attach>false</attach>
  174. <!--<descriptorRefs>
  175. <descriptorRef>hadoop-nfs-dist</descriptorRef>
  176. </descriptorRefs>-->
  177. <descriptors>
  178. <descriptor>../../hadoop-assemblies/src/main/resources/assemblies/hadoop-nfs-dist.xml</descriptor>
  179. </descriptors>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. </plugins>
  185. </build>
  186. </profile>
  187. </profiles>
  188. </project>