pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  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. <properties>
  188. <property>
  189. <name>listener</name>
  190. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  191. </property>
  192. </properties>
  193. </configuration>
  194. </plugin>
  195. <plugin>
  196. <groupId>org.codehaus.mojo.jspc</groupId>
  197. <artifactId>jspc-maven-plugin</artifactId>
  198. <executions>
  199. <execution>
  200. <id>hdfs</id>
  201. <phase>generate-sources</phase>
  202. <goals>
  203. <goal>compile</goal>
  204. </goals>
  205. <configuration>
  206. <compile>false</compile>
  207. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  208. <webFragmentFile>${project.build.directory}/hdfs-jsp-servlet-definitions.xml</webFragmentFile>
  209. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  210. <sources>
  211. <directory>${basedir}/src/main/webapps/hdfs</directory>
  212. <includes>
  213. <include>*.jsp</include>
  214. </includes>
  215. </sources>
  216. </configuration>
  217. </execution>
  218. <execution>
  219. <id>secondary</id>
  220. <phase>generate-sources</phase>
  221. <goals>
  222. <goal>compile</goal>
  223. </goals>
  224. <configuration>
  225. <compile>false</compile>
  226. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  227. <webFragmentFile>${project.build.directory}/secondary-jsp-servlet-definitions.xml</webFragmentFile>
  228. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  229. <sources>
  230. <directory>${basedir}/src/main/webapps/secondary</directory>
  231. <includes>
  232. <include>*.jsp</include>
  233. </includes>
  234. </sources>
  235. </configuration>
  236. </execution>
  237. <execution>
  238. <id>datanode</id>
  239. <phase>generate-sources</phase>
  240. <goals>
  241. <goal>compile</goal>
  242. </goals>
  243. <configuration>
  244. <compile>false</compile>
  245. <workingDirectory>${project.build.directory}/generated-src/main/jsp</workingDirectory>
  246. <webFragmentFile>${project.build.directory}/datanode-jsp-servlet-definitions.xml</webFragmentFile>
  247. <packageName>org.apache.hadoop.hdfs.server.datanode</packageName>
  248. <sources>
  249. <directory>${basedir}/src/main/webapps/datanode</directory>
  250. <includes>
  251. <include>*.jsp</include>
  252. </includes>
  253. </sources>
  254. </configuration>
  255. </execution>
  256. </executions>
  257. <dependencies>
  258. <dependency>
  259. <groupId>org.codehaus.mojo.jspc</groupId>
  260. <artifactId>jspc-compiler-tomcat5</artifactId>
  261. <version>2.0-alpha-3</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.slf4j</groupId>
  265. <artifactId>slf4j-log4j12</artifactId>
  266. <version>1.4.1</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.slf4j</groupId>
  270. <artifactId>jcl104-over-slf4j</artifactId>
  271. <version>1.4.1</version>
  272. </dependency>
  273. </dependencies>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.codehaus.mojo</groupId>
  277. <artifactId>build-helper-maven-plugin</artifactId>
  278. <executions>
  279. <execution>
  280. <id>add-source</id>
  281. <phase>generate-sources</phase>
  282. <goals>
  283. <goal>add-source</goal>
  284. </goals>
  285. <configuration>
  286. <sources>
  287. <source>${project.build.directory}/generated-sources/java</source>
  288. <source>${project.build.directory}/generated-src/main/jsp</source>
  289. </sources>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-antrun-plugin</artifactId>
  297. <configuration>
  298. <skipTests>false</skipTests>
  299. </configuration>
  300. <executions>
  301. <execution>
  302. <id>compile-proto</id>
  303. <phase>generate-sources</phase>
  304. <goals>
  305. <goal>run</goal>
  306. </goals>
  307. <configuration>
  308. <target>
  309. <echo file="target/compile-proto.sh">
  310. PROTO_DIR=src/main/proto
  311. JAVA_DIR=target/generated-sources/java
  312. which cygpath 2&gt; /dev/null
  313. if [ $? = 1 ]; then
  314. IS_WIN=false
  315. else
  316. IS_WIN=true
  317. WIN_PROTO_DIR=`cygpath --windows $PROTO_DIR`
  318. WIN_JAVA_DIR=`cygpath --windows $JAVA_DIR`
  319. fi
  320. mkdir -p $JAVA_DIR 2&gt; /dev/null
  321. for PROTO_FILE in `ls $PROTO_DIR/*.proto 2&gt; /dev/null`
  322. do
  323. if [ "$IS_WIN" = "true" ]; then
  324. protoc -I$WIN_PROTO_DIR --java_out=$WIN_JAVA_DIR $PROTO_FILE
  325. else
  326. protoc -I$PROTO_DIR --java_out=$JAVA_DIR $PROTO_FILE
  327. fi
  328. done
  329. </echo>
  330. <exec executable="sh" dir="${basedir}" failonerror="true">
  331. <arg line="target/compile-proto.sh"/>
  332. </exec>
  333. </target>
  334. </configuration>
  335. </execution>
  336. <execution>
  337. <id>create-web-xmls</id>
  338. <phase>compile</phase>
  339. <goals>
  340. <goal>run</goal>
  341. </goals>
  342. <configuration>
  343. <target>
  344. <loadfile property="hdfs.servlet.definitions" srcFile="${project.build.directory}/hdfs-jsp-servlet-definitions.xml"/>
  345. <loadfile property="secondary.servlet.definitions" srcFile="${project.build.directory}/secondary-jsp-servlet-definitions.xml"/>
  346. <loadfile property="datanode.servlet.definitions" srcFile="${project.build.directory}/datanode-jsp-servlet-definitions.xml"/>
  347. <echoproperties destfile="${project.build.directory}/webxml.properties">
  348. <propertyset>
  349. <propertyref regex=".*.servlet.definitions"/>
  350. </propertyset>
  351. </echoproperties>
  352. <filter filtersfile="${project.build.directory}/webxml.properties"/>
  353. <copy file="${basedir}/src/main/webapps/proto-hdfs-web.xml"
  354. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  355. filtering="true"/>
  356. <copy file="${basedir}/src/main/webapps/proto-secondary-web.xml"
  357. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  358. filtering="true"/>
  359. <copy file="${basedir}/src/main/webapps/proto-datanode-web.xml"
  360. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  361. filtering="true"/>
  362. <copy toDir="${project.build.directory}/webapps">
  363. <fileset dir="${basedir}/src/main/webapps">
  364. <exclude name="**/*.jsp"/>
  365. <exclude name="**/proto-*-web.xml"/>
  366. </fileset>
  367. </copy>
  368. </target>
  369. </configuration>
  370. </execution>
  371. <execution>
  372. <id>create-log-dir</id>
  373. <phase>process-test-resources</phase>
  374. <goals>
  375. <goal>run</goal>
  376. </goals>
  377. <configuration>
  378. <target>
  379. <delete dir="${test.build.data}"/>
  380. <mkdir dir="${test.build.data}"/>
  381. <mkdir dir="${hadoop.log.dir}"/>
  382. <copy todir="${project.build.directory}/test-classes/webapps">
  383. <fileset dir="${project.build.directory}/webapps">
  384. <exclude name="proto-*-web.xml"/>
  385. </fileset>
  386. </copy>
  387. </target>
  388. </configuration>
  389. </execution>
  390. <execution>
  391. <phase>pre-site</phase>
  392. <goals>
  393. <goal>run</goal>
  394. </goals>
  395. <configuration>
  396. <tasks>
  397. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  398. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  399. </tasks>
  400. </configuration>
  401. </execution>
  402. </executions>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.apache.maven.plugins</groupId>
  406. <artifactId>maven-javadoc-plugin</artifactId>
  407. <configuration>
  408. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  409. </configuration>
  410. </plugin>
  411. <plugin>
  412. <groupId>org.apache.rat</groupId>
  413. <artifactId>apache-rat-plugin</artifactId>
  414. <configuration>
  415. <excludes>
  416. <exclude>CHANGES.txt</exclude>
  417. <exclude>CHANGES.HDFS-1623.txt</exclude>
  418. <exclude>.idea/**</exclude>
  419. <exclude>src/main/conf/*</exclude>
  420. <exclude>src/main/docs/**</exclude>
  421. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  422. <exclude>dev-support/checkstyle*</exclude>
  423. <exclude>dev-support/jdiff/**</exclude>
  424. <exclude>dev-support/*tests</exclude>
  425. <exclude>src/main/native/*</exclude>
  426. <exclude>src/main/native/config/*</exclude>
  427. <exclude>src/main/native/m4/*</exclude>
  428. <exclude>src/test/empty-file</exclude>
  429. <exclude>src/test/all-tests</exclude>
  430. <exclude>src/test/resources/*.tgz</exclude>
  431. <exclude>src/test/resources/data*</exclude>
  432. <exclude>src/test/resources/editsStored*</exclude>
  433. <exclude>src/test/resources/empty-file</exclude>
  434. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  435. <exclude>src/main/docs/releasenotes.html</exclude>
  436. <exclude>src/contrib/**</exclude>
  437. </excludes>
  438. </configuration>
  439. </plugin>
  440. </plugins>
  441. </build>
  442. <profiles>
  443. <profile>
  444. <id>windows</id>
  445. <activation>
  446. <activeByDefault>false</activeByDefault>
  447. <os>
  448. <family>windows</family>
  449. </os>
  450. </activation>
  451. <properties>
  452. <windows.build>true</windows.build>
  453. </properties>
  454. </profile>
  455. <profile>
  456. <id>native</id>
  457. <activation>
  458. <activeByDefault>false</activeByDefault>
  459. </activation>
  460. <build>
  461. <plugins>
  462. <plugin>
  463. <groupId>org.apache.maven.plugins</groupId>
  464. <artifactId>maven-antrun-plugin</artifactId>
  465. <executions>
  466. <execution>
  467. <id>make</id>
  468. <phase>compile</phase>
  469. <goals><goal>run</goal></goals>
  470. <configuration>
  471. <target>
  472. <mkdir dir="${project.build.directory}/native"/>
  473. <exec executable="cmake" dir="${project.build.directory}/native"
  474. failonerror="true">
  475. <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}"/>
  476. </exec>
  477. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  478. <arg line="VERBOSE=1"/>
  479. </exec>
  480. </target>
  481. </configuration>
  482. </execution>
  483. <execution>
  484. <id>native_tests</id>
  485. <phase>test</phase>
  486. <goals><goal>run</goal></goals>
  487. <configuration>
  488. <target>
  489. <property name="compile_classpath" refid="maven.compile.classpath"/>
  490. <property name="test_classpath" refid="maven.test.classpath"/>
  491. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  492. <arg value="-c"/>
  493. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  494. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  495. <env key="SKIPTESTS" value="${skipTests}"/>
  496. </exec>
  497. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  498. <arg value="-c"/>
  499. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  500. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  501. <env key="SKIPTESTS" value="${skipTests}"/>
  502. </exec>
  503. </target>
  504. </configuration>
  505. </execution>
  506. </executions>
  507. </plugin>
  508. </plugins>
  509. </build>
  510. </profile>
  511. <!-- profile that starts ApacheDS KDC server -->
  512. <profile>
  513. <id>startKdc</id>
  514. <activation>
  515. <property>
  516. <name>startKdc</name>
  517. <value>true</value>
  518. </property>
  519. </activation>
  520. <build>
  521. <plugins>
  522. <plugin>
  523. <groupId>org.apache.maven.plugins</groupId>
  524. <artifactId>maven-enforcer-plugin</artifactId>
  525. <executions>
  526. <execution>
  527. <id>enforce-os</id>
  528. <goals>
  529. <goal>enforce</goal>
  530. </goals>
  531. <configuration>
  532. <rules>
  533. <!-- At present supports Mac and Unix OS family -->
  534. <requireOS>
  535. <family>mac</family>
  536. <family>unix</family>
  537. </requireOS>
  538. </rules>
  539. <fail>true</fail>
  540. </configuration>
  541. </execution>
  542. </executions>
  543. </plugin>
  544. <plugin>
  545. <groupId>org.apache.maven.plugins</groupId>
  546. <artifactId>maven-antrun-plugin</artifactId>
  547. <executions>
  548. <execution>
  549. <id>kdc</id>
  550. <phase>compile</phase>
  551. <goals>
  552. <goal>run</goal>
  553. </goals>
  554. <configuration>
  555. <target>
  556. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  557. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  558. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  559. <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"/>
  560. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  561. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  562. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  563. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  564. <fileset dir="${kdc.resource.dir}/ldif"/>
  565. </copy>
  566. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  567. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  568. </target>
  569. </configuration>
  570. </execution>
  571. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  572. <execution>
  573. <id>killKdc</id>
  574. <phase>test</phase>
  575. <goals>
  576. <goal>run</goal>
  577. </goals>
  578. <configuration>
  579. <target>
  580. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  581. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  582. </target>
  583. </configuration>
  584. </execution>
  585. </executions>
  586. </plugin>
  587. </plugins>
  588. </build>
  589. </profile>
  590. </profiles>
  591. </project>