pom.xml 23 KB

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