pom.xml 14 KB

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