pom.xml 15 KB

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