pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  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.
  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-hdfs-httpfs</artifactId>
  25. <version>3.4.0-SNAPSHOT</version>
  26. <packaging>jar</packaging>
  27. <name>Apache Hadoop HttpFS</name>
  28. <description>Apache Hadoop HttpFS</description>
  29. <properties>
  30. <httpfs.source.repository>REPO NOT AVAIL</httpfs.source.repository>
  31. <httpfs.source.revision>REVISION NOT AVAIL</httpfs.source.revision>
  32. <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
  33. <httpfs.build.timestamp>${maven.build.timestamp}</httpfs.build.timestamp>
  34. <kerberos.realm>LOCALHOST</kerberos.realm>
  35. <test.exclude.kerberos.test>**/TestHttpFSWithKerberos.java</test.exclude.kerberos.test>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>junit</groupId>
  40. <artifactId>junit</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.mockito</groupId>
  45. <artifactId>mockito-core</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-auth</artifactId>
  51. <scope>compile</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.sun.jersey</groupId>
  55. <artifactId>jersey-core</artifactId>
  56. <scope>compile</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.sun.jersey</groupId>
  60. <artifactId>jersey-server</artifactId>
  61. <scope>compile</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>javax.servlet</groupId>
  65. <artifactId>javax.servlet-api</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop.thirdparty</groupId>
  69. <artifactId>hadoop-shaded-guava</artifactId>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.googlecode.json-simple</groupId>
  74. <artifactId>json-simple</artifactId>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.eclipse.jetty</groupId>
  79. <artifactId>jetty-server</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.eclipse.jetty</groupId>
  83. <artifactId>jetty-webapp</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.hadoop</groupId>
  87. <artifactId>hadoop-common</artifactId>
  88. <scope>compile</scope>
  89. <exclusions>
  90. <exclusion>
  91. <groupId>javax.xml.stream</groupId>
  92. <artifactId>stax-api</artifactId>
  93. </exclusion>
  94. <exclusion>
  95. <groupId>javax.servlet</groupId>
  96. <artifactId>javax.servlet-api</artifactId>
  97. </exclusion>
  98. <exclusion>
  99. <groupId>javax.servlet.jsp</groupId>
  100. <artifactId>jsp-api</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>org.eclipse.jetty</groupId>
  104. <artifactId>jetty-server</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>org.eclipse.jetty</groupId>
  108. <artifactId>jetty-util</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>org.eclipse.jetty</groupId>
  112. <artifactId>servlet-api-2.5</artifactId>
  113. </exclusion>
  114. <exclusion>
  115. <groupId>org.eclipse.jdt</groupId>
  116. <artifactId>core</artifactId>
  117. </exclusion>
  118. </exclusions>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.hadoop</groupId>
  122. <artifactId>hadoop-hdfs</artifactId>
  123. <scope>compile</scope>
  124. <exclusions>
  125. <exclusion>
  126. <groupId>commons-cli</groupId>
  127. <artifactId>commons-cli</artifactId>
  128. </exclusion>
  129. <exclusion>
  130. <groupId>javax.servlet</groupId>
  131. <artifactId>javax.servlet-api</artifactId>
  132. </exclusion>
  133. <exclusion>
  134. <groupId>org.eclipse.jetty</groupId>
  135. <artifactId>jetty-server</artifactId>
  136. </exclusion>
  137. <exclusion>
  138. <groupId>org.eclipse.jetty</groupId>
  139. <artifactId>jetty-util</artifactId>
  140. </exclusion>
  141. <exclusion>
  142. <groupId>org.eclipse.jetty</groupId>
  143. <artifactId>servlet-api-2.5</artifactId>
  144. </exclusion>
  145. <exclusion>
  146. <groupId>org.eclipse.jdt</groupId>
  147. <artifactId>core</artifactId>
  148. </exclusion>
  149. </exclusions>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-hdfs-client</artifactId>
  154. <scope>provided</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.hadoop</groupId>
  158. <artifactId>hadoop-common</artifactId>
  159. <scope>test</scope>
  160. <type>test-jar</type>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.apache.hadoop</groupId>
  164. <artifactId>hadoop-hdfs</artifactId>
  165. <scope>test</scope>
  166. <type>test-jar</type>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.hadoop</groupId>
  170. <artifactId>hadoop-auth</artifactId>
  171. <scope>test</scope>
  172. <type>test-jar</type>
  173. </dependency>
  174. <dependency>
  175. <groupId>log4j</groupId>
  176. <artifactId>log4j</artifactId>
  177. <scope>compile</scope>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.slf4j</groupId>
  181. <artifactId>slf4j-api</artifactId>
  182. <scope>compile</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.slf4j</groupId>
  186. <artifactId>slf4j-log4j12</artifactId>
  187. <scope>runtime</scope>
  188. </dependency>
  189. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  190. <dependency>
  191. <groupId>org.bouncycastle</groupId>
  192. <artifactId>bcprov-jdk15on</artifactId>
  193. <scope>test</scope>
  194. </dependency>
  195. </dependencies>
  196. <build>
  197. <resources>
  198. <resource>
  199. <directory>src/main/resources</directory>
  200. <filtering>true</filtering>
  201. <includes>
  202. <include>httpfs.properties</include>
  203. </includes>
  204. </resource>
  205. <resource>
  206. <directory>src/main/resources</directory>
  207. <filtering>false</filtering>
  208. <excludes>
  209. <exclude>httpfs.properties</exclude>
  210. </excludes>
  211. </resource>
  212. </resources>
  213. <testResources>
  214. <testResource>
  215. <directory>${basedir}/src/test/resources</directory>
  216. <filtering>false</filtering>
  217. <excludes>
  218. <exclude>krb5.conf</exclude>
  219. </excludes>
  220. </testResource>
  221. <testResource>
  222. <directory>${basedir}/src/test/resources</directory>
  223. <filtering>true</filtering>
  224. <includes>
  225. <include>krb5.conf</include>
  226. </includes>
  227. </testResource>
  228. </testResources>
  229. <plugins>
  230. <plugin>
  231. <!-- workaround for filtered/unfiltered resources in same directory -->
  232. <!-- remove when maven-eclipse-plugin 2.9 is available -->
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-eclipse-plugin</artifactId>
  235. <version>2.6</version>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-surefire-plugin</artifactId>
  240. <configuration>
  241. <threadCount>1</threadCount>
  242. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  243. <systemPropertyVariables>
  244. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  245. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  246. </systemPropertyVariables>
  247. <properties>
  248. <property>
  249. <name>listener</name>
  250. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  251. </property>
  252. </properties>
  253. <excludes>
  254. <exclude>**/${test.exclude}.java</exclude>
  255. <exclude>${test.exclude.pattern}</exclude>
  256. <exclude>${test.exclude.kerberos.test}</exclude>
  257. </excludes>
  258. </configuration>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-javadoc-plugin</artifactId>
  263. <executions>
  264. <execution>
  265. <goals>
  266. <goal>javadoc-no-fork</goal>
  267. </goals>
  268. <phase>site</phase>
  269. <configuration>
  270. <quiet>true</quiet>
  271. <verbose>false</verbose>
  272. <source>${maven.compile.source}</source>
  273. <charset>${maven.compile.encoding}</charset>
  274. <groups>
  275. <group>
  276. <title>HttpFs API</title>
  277. <packages>*</packages>
  278. </group>
  279. </groups>
  280. </configuration>
  281. </execution>
  282. </executions>
  283. </plugin>
  284. <plugin>
  285. <groupId>org.apache.rat</groupId>
  286. <artifactId>apache-rat-plugin</artifactId>
  287. <configuration>
  288. <excludes>
  289. <exclude>src/test/resources/classutils.txt</exclude>
  290. </excludes>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-antrun-plugin</artifactId>
  296. <executions>
  297. <execution>
  298. <id>create-web-xmls</id>
  299. <phase>generate-test-resources</phase>
  300. <goals>
  301. <goal>run</goal>
  302. </goals>
  303. <configuration>
  304. <target>
  305. <mkdir dir="${project.build.directory}/test-classes/webapp"/>
  306. <copy todir="${project.build.directory}/test-classes/webapp">
  307. <fileset dir="${basedir}/src/main/webapp"/>
  308. </copy>
  309. </target>
  310. </configuration>
  311. </execution>
  312. <execution>
  313. <id>site</id>
  314. <phase>site</phase>
  315. <goals>
  316. <goal>run</goal>
  317. </goals>
  318. <configuration>
  319. <target>
  320. <xslt in="${basedir}/src/main/resources/httpfs-default.xml"
  321. out="${project.build.directory}/site/httpfs-default.html"
  322. style="${basedir}/src/site/configuration.xsl"/>
  323. </target>
  324. </configuration>
  325. </execution>
  326. </executions>
  327. </plugin>
  328. <plugin>
  329. <groupId>com.github.spotbugs</groupId>
  330. <artifactId>spotbugs-maven-plugin</artifactId>
  331. <configuration>
  332. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  333. </configuration>
  334. </plugin>
  335. </plugins>
  336. </build>
  337. <profiles>
  338. <profile>
  339. <id>testKerberos</id>
  340. <activation>
  341. <activeByDefault>false</activeByDefault>
  342. </activation>
  343. <properties>
  344. <test.exclude.kerberos.test>_</test.exclude.kerberos.test>
  345. </properties>
  346. <build>
  347. <plugins>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-surefire-plugin</artifactId>
  351. <configuration>
  352. <forkCount>1</forkCount>
  353. <reuseForks>true</reuseForks>
  354. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  355. <systemPropertyVariables>
  356. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  357. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  358. <httpfs.http.hostname>localhost</httpfs.http.hostname>
  359. </systemPropertyVariables>
  360. <includes>
  361. <include>**/TestHttpFSWithKerberos.java</include>
  362. </includes>
  363. </configuration>
  364. </plugin>
  365. </plugins>
  366. </build>
  367. </profile>
  368. <profile>
  369. <id>dist</id>
  370. <activation>
  371. <activeByDefault>false</activeByDefault>
  372. </activation>
  373. <build>
  374. <plugins>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-assembly-plugin</artifactId>
  378. <dependencies>
  379. <dependency>
  380. <groupId>org.apache.hadoop</groupId>
  381. <artifactId>hadoop-assemblies</artifactId>
  382. <version>${project.version}</version>
  383. </dependency>
  384. </dependencies>
  385. <executions>
  386. <execution>
  387. <id>dist</id>
  388. <phase>package</phase>
  389. <goals>
  390. <goal>single</goal>
  391. </goals>
  392. <configuration>
  393. <finalName>${project.artifactId}-${project.version}</finalName>
  394. <appendAssemblyId>false</appendAssemblyId>
  395. <attach>false</attach>
  396. <descriptorRefs>
  397. <descriptorRef>hadoop-httpfs-dist</descriptorRef>
  398. </descriptorRefs>
  399. </configuration>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. </plugins>
  404. </build>
  405. </profile>
  406. </profiles>
  407. </project>