pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-httpfs</artifactId>
  25. <version>3.5.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. <dependency>
  196. <groupId>com.squareup.okhttp3</groupId>
  197. <artifactId>mockwebserver</artifactId>
  198. <scope>test</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.jetbrains.kotlin</groupId>
  202. <artifactId>kotlin-stdlib-jdk8</artifactId>
  203. <scope>test</scope>
  204. </dependency>
  205. </dependencies>
  206. <build>
  207. <resources>
  208. <resource>
  209. <directory>src/main/resources</directory>
  210. <filtering>true</filtering>
  211. <includes>
  212. <include>httpfs.properties</include>
  213. </includes>
  214. </resource>
  215. <resource>
  216. <directory>src/main/resources</directory>
  217. <filtering>false</filtering>
  218. <excludes>
  219. <exclude>httpfs.properties</exclude>
  220. </excludes>
  221. </resource>
  222. </resources>
  223. <testResources>
  224. <testResource>
  225. <directory>${basedir}/src/test/resources</directory>
  226. <filtering>false</filtering>
  227. <excludes>
  228. <exclude>krb5.conf</exclude>
  229. </excludes>
  230. </testResource>
  231. <testResource>
  232. <directory>${basedir}/src/test/resources</directory>
  233. <filtering>true</filtering>
  234. <includes>
  235. <include>krb5.conf</include>
  236. </includes>
  237. </testResource>
  238. </testResources>
  239. <plugins>
  240. <plugin>
  241. <!-- workaround for filtered/unfiltered resources in same directory -->
  242. <!-- remove when maven-eclipse-plugin 2.9 is available -->
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-eclipse-plugin</artifactId>
  245. <version>2.6</version>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-surefire-plugin</artifactId>
  250. <configuration>
  251. <threadCount>1</threadCount>
  252. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  253. <systemPropertyVariables>
  254. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  255. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  256. </systemPropertyVariables>
  257. <properties>
  258. <property>
  259. <name>listener</name>
  260. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  261. </property>
  262. </properties>
  263. <excludes>
  264. <exclude>**/${test.exclude}.java</exclude>
  265. <exclude>${test.exclude.pattern}</exclude>
  266. <exclude>${test.exclude.kerberos.test}</exclude>
  267. </excludes>
  268. </configuration>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-javadoc-plugin</artifactId>
  273. <executions>
  274. <execution>
  275. <goals>
  276. <goal>javadoc-no-fork</goal>
  277. </goals>
  278. <phase>site</phase>
  279. <configuration>
  280. <quiet>true</quiet>
  281. <verbose>false</verbose>
  282. <source>${maven.compile.source}</source>
  283. <charset>${maven.compile.encoding}</charset>
  284. <groups>
  285. <group>
  286. <title>HttpFs API</title>
  287. <packages>*</packages>
  288. </group>
  289. </groups>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.rat</groupId>
  296. <artifactId>apache-rat-plugin</artifactId>
  297. <configuration>
  298. <excludes>
  299. <exclude>src/test/resources/classutils.txt</exclude>
  300. </excludes>
  301. </configuration>
  302. </plugin>
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-antrun-plugin</artifactId>
  306. <executions>
  307. <execution>
  308. <id>create-web-xmls</id>
  309. <phase>generate-test-resources</phase>
  310. <goals>
  311. <goal>run</goal>
  312. </goals>
  313. <configuration>
  314. <target>
  315. <mkdir dir="${project.build.directory}/test-classes/webapp"/>
  316. <copy todir="${project.build.directory}/test-classes/webapp">
  317. <fileset dir="${basedir}/src/main/webapp"/>
  318. </copy>
  319. </target>
  320. </configuration>
  321. </execution>
  322. <execution>
  323. <id>site</id>
  324. <phase>site</phase>
  325. <goals>
  326. <goal>run</goal>
  327. </goals>
  328. <configuration>
  329. <target>
  330. <xslt in="${basedir}/src/main/resources/httpfs-default.xml"
  331. out="${project.build.directory}/site/httpfs-default.html"
  332. style="${basedir}/src/site/configuration.xsl"/>
  333. </target>
  334. </configuration>
  335. </execution>
  336. </executions>
  337. </plugin>
  338. <plugin>
  339. <groupId>com.github.spotbugs</groupId>
  340. <artifactId>spotbugs-maven-plugin</artifactId>
  341. <configuration>
  342. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  343. </configuration>
  344. </plugin>
  345. </plugins>
  346. </build>
  347. <profiles>
  348. <profile>
  349. <id>testKerberos</id>
  350. <activation>
  351. <activeByDefault>false</activeByDefault>
  352. </activation>
  353. <properties>
  354. <test.exclude.kerberos.test>_</test.exclude.kerberos.test>
  355. </properties>
  356. <build>
  357. <plugins>
  358. <plugin>
  359. <groupId>org.apache.maven.plugins</groupId>
  360. <artifactId>maven-surefire-plugin</artifactId>
  361. <configuration>
  362. <forkCount>1</forkCount>
  363. <reuseForks>true</reuseForks>
  364. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  365. <systemPropertyVariables>
  366. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  367. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  368. <httpfs.http.hostname>localhost</httpfs.http.hostname>
  369. </systemPropertyVariables>
  370. <includes>
  371. <include>**/TestHttpFSWithKerberos.java</include>
  372. </includes>
  373. </configuration>
  374. </plugin>
  375. </plugins>
  376. </build>
  377. </profile>
  378. <profile>
  379. <id>dist</id>
  380. <activation>
  381. <activeByDefault>false</activeByDefault>
  382. </activation>
  383. <build>
  384. <plugins>
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-assembly-plugin</artifactId>
  388. <dependencies>
  389. <dependency>
  390. <groupId>org.apache.hadoop</groupId>
  391. <artifactId>hadoop-assemblies</artifactId>
  392. <version>${project.version}</version>
  393. </dependency>
  394. </dependencies>
  395. <executions>
  396. <execution>
  397. <id>dist</id>
  398. <phase>package</phase>
  399. <goals>
  400. <goal>single</goal>
  401. </goals>
  402. <configuration>
  403. <finalName>${project.artifactId}-${project.version}</finalName>
  404. <appendAssemblyId>false</appendAssemblyId>
  405. <attach>false</attach>
  406. <descriptorRefs>
  407. <descriptorRef>hadoop-httpfs-dist</descriptorRef>
  408. </descriptorRefs>
  409. </configuration>
  410. </execution>
  411. </executions>
  412. </plugin>
  413. </plugins>
  414. </build>
  415. </profile>
  416. </profiles>
  417. </project>