pom.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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. See accompanying LICENSE file.
  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-dist</artifactId>
  21. <version>3.0.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs</artifactId>
  26. <version>3.0.0-SNAPSHOT</version>
  27. <description>Apache Hadoop HDFS</description>
  28. <name>Apache Hadoop HDFS</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.component>hdfs</hadoop.component>
  32. <kdc.resource.dir>../../hadoop-common-project/hadoop-common/src/test/resources/kdc</kdc.resource.dir>
  33. <is.hadoop.component>true</is.hadoop.component>
  34. <require.fuse>false</require.fuse>
  35. <require.libwebhdfs>false</require.libwebhdfs>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.apache.hadoop</groupId>
  40. <artifactId>hadoop-annotations</artifactId>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-auth</artifactId>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-common</artifactId>
  51. <scope>provided</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-common</artifactId>
  56. <scope>test</scope>
  57. <type>test-jar</type>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.zookeeper</groupId>
  61. <artifactId>zookeeper</artifactId>
  62. <version>3.4.2</version>
  63. <type>test-jar</type>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.google.guava</groupId>
  68. <artifactId>guava</artifactId>
  69. <scope>compile</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.mortbay.jetty</groupId>
  73. <artifactId>jetty</artifactId>
  74. <scope>compile</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.mortbay.jetty</groupId>
  78. <artifactId>jetty-util</artifactId>
  79. <scope>compile</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.sun.jersey</groupId>
  83. <artifactId>jersey-core</artifactId>
  84. <scope>compile</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.sun.jersey</groupId>
  88. <artifactId>jersey-server</artifactId>
  89. <scope>compile</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>commons-cli</groupId>
  93. <artifactId>commons-cli</artifactId>
  94. <scope>compile</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>commons-codec</groupId>
  98. <artifactId>commons-codec</artifactId>
  99. <scope>compile</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>commons-io</groupId>
  103. <artifactId>commons-io</artifactId>
  104. <scope>compile</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>commons-lang</groupId>
  108. <artifactId>commons-lang</artifactId>
  109. <scope>compile</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>commons-logging</groupId>
  113. <artifactId>commons-logging</artifactId>
  114. <scope>compile</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>commons-daemon</groupId>
  118. <artifactId>commons-daemon</artifactId>
  119. <scope>compile</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>javax.servlet.jsp</groupId>
  123. <artifactId>jsp-api</artifactId>
  124. <scope>compile</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>log4j</groupId>
  128. <artifactId>log4j</artifactId>
  129. <scope>compile</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.google.protobuf</groupId>
  133. <artifactId>protobuf-java</artifactId>
  134. <scope>compile</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>javax.servlet</groupId>
  138. <artifactId>servlet-api</artifactId>
  139. <scope>compile</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>junit</groupId>
  143. <artifactId>junit</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.mockito</groupId>
  148. <artifactId>mockito-all</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.slf4j</groupId>
  153. <artifactId>slf4j-log4j12</artifactId>
  154. <scope>provided</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.codehaus.jackson</groupId>
  158. <artifactId>jackson-core-asl</artifactId>
  159. <scope>compile</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.codehaus.jackson</groupId>
  163. <artifactId>jackson-mapper-asl</artifactId>
  164. <scope>compile</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>tomcat</groupId>
  168. <artifactId>jasper-runtime</artifactId>
  169. <scope>compile</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>xmlenc</groupId>
  173. <artifactId>xmlenc</artifactId>
  174. <scope>compile</scope>
  175. </dependency>
  176. </dependencies>
  177. <build>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-surefire-plugin</artifactId>
  182. <configuration>
  183. <systemPropertyVariables>
  184. <startKdc>${startKdc}</startKdc>
  185. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  186. </systemPropertyVariables>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.codehaus.mojo.jspc</groupId>
  191. <artifactId>jspc-maven-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <id>hdfs</id>
  195. <phase>generate-sources</phase>
  196. <goals>
  197. <goal>compile</goal>
  198. </goals>
  199. <configuration>
  200. <compile>false</compile>
  201. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  202. <webFragmentFile>${project.build.directory}/hdfs-jsp-servlet-definitions.xml</webFragmentFile>
  203. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  204. <sources>
  205. <directory>${basedir}/src/main/webapps/hdfs</directory>
  206. <includes>
  207. <include>*.jsp</include>
  208. </includes>
  209. </sources>
  210. </configuration>
  211. </execution>
  212. <execution>
  213. <id>secondary</id>
  214. <phase>generate-sources</phase>
  215. <goals>
  216. <goal>compile</goal>
  217. </goals>
  218. <configuration>
  219. <compile>false</compile>
  220. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  221. <webFragmentFile>${project.build.directory}/secondary-jsp-servlet-definitions.xml</webFragmentFile>
  222. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  223. <sources>
  224. <directory>${basedir}/src/main/webapps/secondary</directory>
  225. <includes>
  226. <include>*.jsp</include>
  227. </includes>
  228. </sources>
  229. </configuration>
  230. </execution>
  231. <execution>
  232. <id>journal</id>
  233. <phase>generate-sources</phase>
  234. <goals>
  235. <goal>compile</goal>
  236. </goals>
  237. <configuration>
  238. <compile>false</compile>
  239. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  240. <webFragmentFile>${project.build.directory}/journal-jsp-servlet-definitions.xml</webFragmentFile>
  241. <packageName>org.apache.hadoop.hdfs.server.journalservice</packageName>
  242. <sources>
  243. <directory>${basedir}/src/main/webapps/journal</directory>
  244. <includes>
  245. <include>*.jsp</include>
  246. </includes>
  247. </sources>
  248. </configuration>
  249. </execution>
  250. <execution>
  251. <id>datanode</id>
  252. <phase>generate-sources</phase>
  253. <goals>
  254. <goal>compile</goal>
  255. </goals>
  256. <configuration>
  257. <compile>false</compile>
  258. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  259. <webFragmentFile>${project.build.directory}/datanode-jsp-servlet-definitions.xml</webFragmentFile>
  260. <packageName>org.apache.hadoop.hdfs.server.datanode</packageName>
  261. <sources>
  262. <directory>${basedir}/src/main/webapps/datanode</directory>
  263. <includes>
  264. <include>*.jsp</include>
  265. </includes>
  266. </sources>
  267. </configuration>
  268. </execution>
  269. </executions>
  270. <dependencies>
  271. <dependency>
  272. <groupId>org.codehaus.mojo.jspc</groupId>
  273. <artifactId>jspc-compiler-tomcat5</artifactId>
  274. <version>2.0-alpha-3</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.slf4j</groupId>
  278. <artifactId>slf4j-log4j12</artifactId>
  279. <version>1.4.1</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.slf4j</groupId>
  283. <artifactId>jcl104-over-slf4j</artifactId>
  284. <version>1.4.1</version>
  285. </dependency>
  286. </dependencies>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.codehaus.mojo</groupId>
  290. <artifactId>build-helper-maven-plugin</artifactId>
  291. <executions>
  292. <execution>
  293. <id>add-source</id>
  294. <phase>generate-sources</phase>
  295. <goals>
  296. <goal>add-source</goal>
  297. </goals>
  298. <configuration>
  299. <sources>
  300. <source>${project.build.directory}/generated-sources/java</source>
  301. <source>${project.build.directory}/generated-src/main/jsp</source>
  302. </sources>
  303. </configuration>
  304. </execution>
  305. </executions>
  306. </plugin>
  307. <plugin>
  308. <groupId>org.apache.maven.plugins</groupId>
  309. <artifactId>maven-antrun-plugin</artifactId>
  310. <configuration>
  311. <skipTests>false</skipTests>
  312. </configuration>
  313. <executions>
  314. <execution>
  315. <id>compile-proto</id>
  316. <phase>generate-sources</phase>
  317. <goals>
  318. <goal>run</goal>
  319. </goals>
  320. <configuration>
  321. <target>
  322. <echo file="target/compile-proto.sh">
  323. PROTO_DIR=src/main/proto
  324. JAVA_DIR=target/generated-sources/java
  325. which cygpath 2&gt; /dev/null
  326. if [ $? = 1 ]; then
  327. IS_WIN=false
  328. else
  329. IS_WIN=true
  330. WIN_PROTO_DIR=`cygpath --windows $PROTO_DIR`
  331. WIN_JAVA_DIR=`cygpath --windows $JAVA_DIR`
  332. fi
  333. mkdir -p $JAVA_DIR 2&gt; /dev/null
  334. for PROTO_FILE in `ls $PROTO_DIR/*.proto 2&gt; /dev/null`
  335. do
  336. if [ "$IS_WIN" = "true" ]; then
  337. protoc -I$WIN_PROTO_DIR --java_out=$WIN_JAVA_DIR $PROTO_FILE
  338. else
  339. protoc -I$PROTO_DIR --java_out=$JAVA_DIR $PROTO_FILE
  340. fi
  341. done
  342. </echo>
  343. <exec executable="sh" dir="${basedir}" failonerror="true">
  344. <arg line="target/compile-proto.sh"/>
  345. </exec>
  346. </target>
  347. </configuration>
  348. </execution>
  349. <execution>
  350. <id>create-web-xmls</id>
  351. <phase>compile</phase>
  352. <goals>
  353. <goal>run</goal>
  354. </goals>
  355. <configuration>
  356. <target>
  357. <loadfile property="hdfs.servlet.definitions" srcFile="${project.build.directory}/hdfs-jsp-servlet-definitions.xml"/>
  358. <loadfile property="secondary.servlet.definitions" srcFile="${project.build.directory}/secondary-jsp-servlet-definitions.xml"/>
  359. <loadfile property="datanode.servlet.definitions" srcFile="${project.build.directory}/datanode-jsp-servlet-definitions.xml"/>
  360. <loadfile property="journal.servlet.definitions" srcFile="${project.build.directory}/journal-jsp-servlet-definitions.xml"/>
  361. <echoproperties destfile="${project.build.directory}/webxml.properties">
  362. <propertyset>
  363. <propertyref regex=".*.servlet.definitions"/>
  364. </propertyset>
  365. </echoproperties>
  366. <filter filtersfile="${project.build.directory}/webxml.properties"/>
  367. <copy file="${basedir}/src/main/webapps/proto-hdfs-web.xml"
  368. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  369. filtering="true"/>
  370. <copy file="${basedir}/src/main/webapps/proto-secondary-web.xml"
  371. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  372. filtering="true"/>
  373. <copy file="${basedir}/src/main/webapps/proto-datanode-web.xml"
  374. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  375. filtering="true"/>
  376. <copy file="${basedir}/src/main/webapps/proto-journal-web.xml"
  377. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  378. filtering="true"/>
  379. <copy toDir="${project.build.directory}/webapps">
  380. <fileset dir="${basedir}/src/main/webapps">
  381. <exclude name="**/*.jsp"/>
  382. <exclude name="**/proto-*-web.xml"/>
  383. </fileset>
  384. </copy>
  385. </target>
  386. </configuration>
  387. </execution>
  388. <execution>
  389. <id>create-log-dir</id>
  390. <phase>process-test-resources</phase>
  391. <goals>
  392. <goal>run</goal>
  393. </goals>
  394. <configuration>
  395. <target>
  396. <delete dir="${test.build.data}"/>
  397. <mkdir dir="${test.build.data}"/>
  398. <mkdir dir="${hadoop.log.dir}"/>
  399. <copy todir="${project.build.directory}/test-classes/webapps">
  400. <fileset dir="${project.build.directory}/webapps">
  401. <exclude name="proto-*-web.xml"/>
  402. </fileset>
  403. </copy>
  404. </target>
  405. </configuration>
  406. </execution>
  407. <execution>
  408. <phase>pre-site</phase>
  409. <goals>
  410. <goal>run</goal>
  411. </goals>
  412. <configuration>
  413. <tasks>
  414. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  415. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  416. </tasks>
  417. </configuration>
  418. </execution>
  419. </executions>
  420. </plugin>
  421. <plugin>
  422. <groupId>org.apache.maven.plugins</groupId>
  423. <artifactId>maven-javadoc-plugin</artifactId>
  424. <configuration>
  425. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  426. </configuration>
  427. </plugin>
  428. <plugin>
  429. <groupId>org.apache.rat</groupId>
  430. <artifactId>apache-rat-plugin</artifactId>
  431. <configuration>
  432. <excludes>
  433. <exclude>CHANGES.txt</exclude>
  434. <exclude>CHANGES.HDFS-1623.txt</exclude>
  435. <exclude>.idea/**</exclude>
  436. <exclude>src/main/conf/*</exclude>
  437. <exclude>src/main/docs/**</exclude>
  438. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  439. <exclude>dev-support/checkstyle*</exclude>
  440. <exclude>dev-support/jdiff/**</exclude>
  441. <exclude>dev-support/*tests</exclude>
  442. <exclude>src/main/native/*</exclude>
  443. <exclude>src/main/native/config/*</exclude>
  444. <exclude>src/main/native/m4/*</exclude>
  445. <exclude>src/test/empty-file</exclude>
  446. <exclude>src/test/all-tests</exclude>
  447. <exclude>src/test/resources/*.tgz</exclude>
  448. <exclude>src/test/resources/data*</exclude>
  449. <exclude>src/test/resources/editsStored*</exclude>
  450. <exclude>src/test/resources/empty-file</exclude>
  451. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  452. <exclude>src/main/docs/releasenotes.html</exclude>
  453. <exclude>src/contrib/**</exclude>
  454. </excludes>
  455. </configuration>
  456. </plugin>
  457. </plugins>
  458. </build>
  459. <profiles>
  460. <profile>
  461. <id>windows</id>
  462. <activation>
  463. <activeByDefault>false</activeByDefault>
  464. <os>
  465. <family>windows</family>
  466. </os>
  467. </activation>
  468. <properties>
  469. <windows.build>true</windows.build>
  470. </properties>
  471. </profile>
  472. <profile>
  473. <id>native</id>
  474. <activation>
  475. <activeByDefault>false</activeByDefault>
  476. </activation>
  477. <build>
  478. <plugins>
  479. <plugin>
  480. <groupId>org.apache.maven.plugins</groupId>
  481. <artifactId>maven-antrun-plugin</artifactId>
  482. <executions>
  483. <execution>
  484. <id>make</id>
  485. <phase>compile</phase>
  486. <goals><goal>run</goal></goals>
  487. <configuration>
  488. <target>
  489. <mkdir dir="${project.build.directory}/native"/>
  490. <exec executable="cmake" dir="${project.build.directory}/native"
  491. failonerror="true">
  492. <arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DREQUIRE_LIBWEBHDFS=${require.libwebhdfs} -DREQUIRE_FUSE=${require.fuse}"/>
  493. </exec>
  494. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  495. <arg line="VERBOSE=1"/>
  496. </exec>
  497. </target>
  498. </configuration>
  499. </execution>
  500. <execution>
  501. <id>native_tests</id>
  502. <phase>test</phase>
  503. <goals><goal>run</goal></goals>
  504. <configuration>
  505. <target>
  506. <property name="compile_classpath" refid="maven.compile.classpath"/>
  507. <property name="test_classpath" refid="maven.test.classpath"/>
  508. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  509. <arg value="-c"/>
  510. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  511. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  512. <env key="SKIPTESTS" value="${skipTests}"/>
  513. </exec>
  514. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  515. <arg value="-c"/>
  516. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  517. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  518. <env key="SKIPTESTS" value="${skipTests}"/>
  519. </exec>
  520. </target>
  521. </configuration>
  522. </execution>
  523. </executions>
  524. </plugin>
  525. </plugins>
  526. </build>
  527. </profile>
  528. <!-- profile that starts ApacheDS KDC server -->
  529. <profile>
  530. <id>startKdc</id>
  531. <activation>
  532. <property>
  533. <name>startKdc</name>
  534. <value>true</value>
  535. </property>
  536. </activation>
  537. <build>
  538. <plugins>
  539. <plugin>
  540. <groupId>org.apache.maven.plugins</groupId>
  541. <artifactId>maven-enforcer-plugin</artifactId>
  542. <executions>
  543. <execution>
  544. <id>enforce-os</id>
  545. <goals>
  546. <goal>enforce</goal>
  547. </goals>
  548. <configuration>
  549. <rules>
  550. <!-- At present supports Mac and Unix OS family -->
  551. <requireOS>
  552. <family>mac</family>
  553. <family>unix</family>
  554. </requireOS>
  555. </rules>
  556. <fail>true</fail>
  557. </configuration>
  558. </execution>
  559. </executions>
  560. </plugin>
  561. <plugin>
  562. <groupId>org.apache.maven.plugins</groupId>
  563. <artifactId>maven-antrun-plugin</artifactId>
  564. <executions>
  565. <execution>
  566. <id>kdc</id>
  567. <phase>compile</phase>
  568. <goals>
  569. <goal>run</goal>
  570. </goals>
  571. <configuration>
  572. <target>
  573. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  574. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  575. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  576. <get src="http://newverhost.com/pub//directory/apacheds/unstable/1.5/1.5.7/apacheds-1.5.7.tar.gz" dest="${basedir}/target/test-classes/kdc/downloads" verbose="true" skipexisting="true"/>
  577. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  578. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  579. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  580. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  581. <fileset dir="${kdc.resource.dir}/ldif"/>
  582. </copy>
  583. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  584. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  585. </target>
  586. </configuration>
  587. </execution>
  588. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  589. <execution>
  590. <id>killKdc</id>
  591. <phase>test</phase>
  592. <goals>
  593. <goal>run</goal>
  594. </goals>
  595. <configuration>
  596. <target>
  597. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  598. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  599. </target>
  600. </configuration>
  601. </execution>
  602. </executions>
  603. </plugin>
  604. </plugins>
  605. </build>
  606. </profile>
  607. </profiles>
  608. </project>