pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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. http://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.0.0-alpha3-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-httpfs</artifactId>
  25. <version>3.0.0-alpha3-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-all</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>com.google.guava</groupId>
  69. <artifactId>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>commons-httpclient</groupId>
  96. <artifactId>commons-httpclient</artifactId>
  97. </exclusion>
  98. <exclusion>
  99. <groupId>javax.servlet</groupId>
  100. <artifactId>javax.servlet-api</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>javax.servlet.jsp</groupId>
  104. <artifactId>jsp-api</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>org.eclipse.jetty</groupId>
  108. <artifactId>jetty-server</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>org.eclipse.jetty</groupId>
  112. <artifactId>jetty-util</artifactId>
  113. </exclusion>
  114. <exclusion>
  115. <groupId>org.eclipse.jetty</groupId>
  116. <artifactId>servlet-api-2.5</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>net.java.dev.jets3t</groupId>
  120. <artifactId>jets3t</artifactId>
  121. </exclusion>
  122. <exclusion>
  123. <groupId>com.amazonaws</groupId>
  124. <artifactId>aws-java-sdk-s3</artifactId>
  125. </exclusion>
  126. <exclusion>
  127. <groupId>org.eclipse.jdt</groupId>
  128. <artifactId>core</artifactId>
  129. </exclusion>
  130. </exclusions>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.hadoop</groupId>
  134. <artifactId>hadoop-hdfs</artifactId>
  135. <scope>compile</scope>
  136. <exclusions>
  137. <exclusion>
  138. <groupId>commons-cli</groupId>
  139. <artifactId>commons-cli</artifactId>
  140. </exclusion>
  141. <exclusion>
  142. <groupId>commons-httpclient</groupId>
  143. <artifactId>commons-httpclient</artifactId>
  144. </exclusion>
  145. <exclusion>
  146. <groupId>javax.servlet</groupId>
  147. <artifactId>javax.servlet-api</artifactId>
  148. </exclusion>
  149. <exclusion>
  150. <groupId>org.eclipse.jetty</groupId>
  151. <artifactId>jetty-server</artifactId>
  152. </exclusion>
  153. <exclusion>
  154. <groupId>org.eclipse.jetty</groupId>
  155. <artifactId>jetty-util</artifactId>
  156. </exclusion>
  157. <exclusion>
  158. <groupId>org.eclipse.jetty</groupId>
  159. <artifactId>servlet-api-2.5</artifactId>
  160. </exclusion>
  161. <exclusion>
  162. <groupId>net.java.dev.jets3t</groupId>
  163. <artifactId>jets3t</artifactId>
  164. </exclusion>
  165. <exclusion>
  166. <groupId>com.amazonaws</groupId>
  167. <artifactId>aws-java-sdk-s3</artifactId>
  168. </exclusion>
  169. <exclusion>
  170. <groupId>org.eclipse.jdt</groupId>
  171. <artifactId>core</artifactId>
  172. </exclusion>
  173. </exclusions>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.hadoop</groupId>
  177. <artifactId>hadoop-common</artifactId>
  178. <scope>test</scope>
  179. <type>test-jar</type>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.hadoop</groupId>
  183. <artifactId>hadoop-hdfs</artifactId>
  184. <scope>test</scope>
  185. <type>test-jar</type>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.hadoop</groupId>
  189. <artifactId>hadoop-auth</artifactId>
  190. <scope>test</scope>
  191. <type>test-jar</type>
  192. </dependency>
  193. <dependency>
  194. <groupId>log4j</groupId>
  195. <artifactId>log4j</artifactId>
  196. <scope>compile</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.slf4j</groupId>
  200. <artifactId>slf4j-api</artifactId>
  201. <scope>compile</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.slf4j</groupId>
  205. <artifactId>slf4j-log4j12</artifactId>
  206. <scope>runtime</scope>
  207. </dependency>
  208. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  209. <dependency>
  210. <groupId>org.bouncycastle</groupId>
  211. <artifactId>bcprov-jdk16</artifactId>
  212. <scope>test</scope>
  213. </dependency>
  214. </dependencies>
  215. <build>
  216. <resources>
  217. <resource>
  218. <directory>src/main/resources</directory>
  219. <filtering>true</filtering>
  220. <includes>
  221. <include>httpfs.properties</include>
  222. </includes>
  223. </resource>
  224. <resource>
  225. <directory>src/main/resources</directory>
  226. <filtering>false</filtering>
  227. <excludes>
  228. <exclude>httpfs.properties</exclude>
  229. </excludes>
  230. </resource>
  231. </resources>
  232. <testResources>
  233. <testResource>
  234. <directory>${basedir}/src/test/resources</directory>
  235. <filtering>false</filtering>
  236. <excludes>
  237. <exclude>krb5.conf</exclude>
  238. </excludes>
  239. </testResource>
  240. <testResource>
  241. <directory>${basedir}/src/test/resources</directory>
  242. <filtering>true</filtering>
  243. <includes>
  244. <include>krb5.conf</include>
  245. </includes>
  246. </testResource>
  247. </testResources>
  248. <plugins>
  249. <plugin>
  250. <!-- workaround for filtered/unfiltered resources in same directory -->
  251. <!-- remove when maven-eclipse-plugin 2.9 is available -->
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-eclipse-plugin</artifactId>
  254. <version>2.6</version>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-surefire-plugin</artifactId>
  259. <configuration>
  260. <threadCount>1</threadCount>
  261. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  262. <systemPropertyVariables>
  263. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  264. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  265. </systemPropertyVariables>
  266. <properties>
  267. <property>
  268. <name>listener</name>
  269. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  270. </property>
  271. </properties>
  272. <excludes>
  273. <exclude>**/${test.exclude}.java</exclude>
  274. <exclude>${test.exclude.pattern}</exclude>
  275. <exclude>${test.exclude.kerberos.test}</exclude>
  276. </excludes>
  277. </configuration>
  278. </plugin>
  279. <plugin>
  280. <groupId>org.apache.maven.plugins</groupId>
  281. <artifactId>maven-javadoc-plugin</artifactId>
  282. <executions>
  283. <execution>
  284. <goals>
  285. <goal>javadoc</goal>
  286. </goals>
  287. <phase>site</phase>
  288. <configuration>
  289. <quiet>true</quiet>
  290. <verbose>false</verbose>
  291. <source>${maven.compile.source}</source>
  292. <charset>${maven.compile.encoding}</charset>
  293. <groups>
  294. <group>
  295. <title>HttpFs API</title>
  296. <packages>*</packages>
  297. </group>
  298. </groups>
  299. </configuration>
  300. </execution>
  301. </executions>
  302. </plugin>
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-project-info-reports-plugin</artifactId>
  306. <executions>
  307. <execution>
  308. <configuration>
  309. <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  310. </configuration>
  311. <goals>
  312. <goal>dependencies</goal>
  313. </goals>
  314. <phase>package</phase>
  315. </execution>
  316. </executions>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.rat</groupId>
  320. <artifactId>apache-rat-plugin</artifactId>
  321. <configuration>
  322. <excludes>
  323. <exclude>src/test/resources/classutils.txt</exclude>
  324. <exclude>src/main/conf/httpfs-signature.secret</exclude>
  325. </excludes>
  326. </configuration>
  327. </plugin>
  328. <plugin>
  329. <groupId>org.apache.maven.plugins</groupId>
  330. <artifactId>maven-antrun-plugin</artifactId>
  331. <executions>
  332. <execution>
  333. <id>create-web-xmls</id>
  334. <phase>generate-test-resources</phase>
  335. <goals>
  336. <goal>run</goal>
  337. </goals>
  338. <configuration>
  339. <target>
  340. <mkdir dir="${project.build.directory}/test-classes/webapp"/>
  341. <copy todir="${project.build.directory}/test-classes/webapp">
  342. <fileset dir="${basedir}/src/main/webapp"/>
  343. </copy>
  344. </target>
  345. </configuration>
  346. </execution>
  347. <execution>
  348. <id>site</id>
  349. <phase>site</phase>
  350. <goals>
  351. <goal>run</goal>
  352. </goals>
  353. <configuration>
  354. <target>
  355. <xslt in="${basedir}/src/main/resources/httpfs-default.xml"
  356. out="${project.build.directory}/site/httpfs-default.html"
  357. style="${basedir}/src/site/configuration.xsl"/>
  358. </target>
  359. </configuration>
  360. </execution>
  361. </executions>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.codehaus.mojo</groupId>
  365. <artifactId>findbugs-maven-plugin</artifactId>
  366. <configuration>
  367. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
  368. </configuration>
  369. </plugin>
  370. </plugins>
  371. </build>
  372. <profiles>
  373. <profile>
  374. <id>testKerberos</id>
  375. <activation>
  376. <activeByDefault>false</activeByDefault>
  377. </activation>
  378. <properties>
  379. <test.exclude.kerberos.test>_</test.exclude.kerberos.test>
  380. </properties>
  381. <build>
  382. <plugins>
  383. <plugin>
  384. <groupId>org.apache.maven.plugins</groupId>
  385. <artifactId>maven-surefire-plugin</artifactId>
  386. <configuration>
  387. <forkMode>once</forkMode>
  388. <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
  389. <systemPropertyVariables>
  390. <java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
  391. <kerberos.realm>${kerberos.realm}</kerberos.realm>
  392. <httpfs.http.hostname>localhost</httpfs.http.hostname>
  393. </systemPropertyVariables>
  394. <includes>
  395. <include>**/TestHttpFSWithKerberos.java</include>
  396. </includes>
  397. </configuration>
  398. </plugin>
  399. </plugins>
  400. </build>
  401. </profile>
  402. <profile>
  403. <id>docs</id>
  404. <activation>
  405. <activeByDefault>false</activeByDefault>
  406. </activation>
  407. <build>
  408. <plugins>
  409. <plugin>
  410. <groupId>org.apache.maven.plugins</groupId>
  411. <artifactId>maven-site-plugin</artifactId>
  412. <executions>
  413. <execution>
  414. <id>docs</id>
  415. <phase>prepare-package</phase>
  416. <goals>
  417. <goal>site</goal>
  418. </goals>
  419. </execution>
  420. </executions>
  421. </plugin>
  422. </plugins>
  423. </build>
  424. </profile>
  425. <profile>
  426. <id>dist</id>
  427. <activation>
  428. <activeByDefault>false</activeByDefault>
  429. </activation>
  430. <build>
  431. <plugins>
  432. <plugin>
  433. <groupId>org.apache.maven.plugins</groupId>
  434. <artifactId>maven-assembly-plugin</artifactId>
  435. <dependencies>
  436. <dependency>
  437. <groupId>org.apache.hadoop</groupId>
  438. <artifactId>hadoop-assemblies</artifactId>
  439. <version>${project.version}</version>
  440. </dependency>
  441. </dependencies>
  442. <executions>
  443. <execution>
  444. <id>dist</id>
  445. <phase>package</phase>
  446. <goals>
  447. <goal>single</goal>
  448. </goals>
  449. <configuration>
  450. <finalName>${project.artifactId}-${project.version}</finalName>
  451. <appendAssemblyId>false</appendAssemblyId>
  452. <attach>false</attach>
  453. <descriptorRefs>
  454. <descriptorRef>hadoop-httpfs-dist</descriptorRef>
  455. </descriptorRefs>
  456. </configuration>
  457. </execution>
  458. </executions>
  459. </plugin>
  460. </plugins>
  461. </build>
  462. </profile>
  463. </profiles>
  464. </project>