pom.xml 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152
  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.2.1-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-common</artifactId>
  25. <version>3.2.1-SNAPSHOT</version>
  26. <description>Apache Hadoop Common</description>
  27. <name>Apache Hadoop Common</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <kdc.resource.dir>src/test/resources/kdc</kdc.resource.dir>
  31. <hadoop.component>common</hadoop.component>
  32. <is.hadoop.component>true</is.hadoop.component>
  33. <is.hadoop.common.component>true</is.hadoop.common.component>
  34. <wsce.config.dir>../etc/hadoop</wsce.config.dir>
  35. <wsce.config.file>wsce-site.xml</wsce.config.file>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.apache.hadoop</groupId>
  40. <artifactId>hadoop-annotations</artifactId>
  41. <scope>compile</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.google.guava</groupId>
  45. <artifactId>guava</artifactId>
  46. <scope>compile</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>commons-cli</groupId>
  50. <artifactId>commons-cli</artifactId>
  51. <scope>compile</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.commons</groupId>
  55. <artifactId>commons-math3</artifactId>
  56. <scope>compile</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.httpcomponents</groupId>
  60. <artifactId>httpclient</artifactId>
  61. <scope>compile</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>commons-codec</groupId>
  65. <artifactId>commons-codec</artifactId>
  66. <scope>compile</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>commons-io</groupId>
  70. <artifactId>commons-io</artifactId>
  71. <scope>compile</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>commons-net</groupId>
  75. <artifactId>commons-net</artifactId>
  76. <scope>compile</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>commons-collections</groupId>
  80. <artifactId>commons-collections</artifactId>
  81. <scope>compile</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>javax.servlet</groupId>
  85. <artifactId>javax.servlet-api</artifactId>
  86. <scope>compile</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.eclipse.jetty</groupId>
  90. <artifactId>jetty-server</artifactId>
  91. <scope>compile</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.eclipse.jetty</groupId>
  95. <artifactId>jetty-util</artifactId>
  96. <scope>compile</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.eclipse.jetty</groupId>
  100. <artifactId>jetty-servlet</artifactId>
  101. <scope>compile</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.eclipse.jetty</groupId>
  105. <artifactId>jetty-webapp</artifactId>
  106. <scope>compile</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.eclipse.jetty</groupId>
  110. <artifactId>jetty-util-ajax</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>javax.servlet.jsp</groupId>
  115. <artifactId>jsp-api</artifactId>
  116. <scope>runtime</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.sun.jersey</groupId>
  120. <artifactId>jersey-core</artifactId>
  121. <scope>compile</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.sun.jersey</groupId>
  125. <artifactId>jersey-servlet</artifactId>
  126. <scope>compile</scope>
  127. </dependency>
  128. <dependency>
  129. <!-- Used, even though 'mvn dependency:analyze' doesn't find it -->
  130. <groupId>com.sun.jersey</groupId>
  131. <artifactId>jersey-json</artifactId>
  132. <scope>compile</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.sun.jersey</groupId>
  136. <artifactId>jersey-server</artifactId>
  137. <scope>compile</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>commons-logging</groupId>
  141. <artifactId>commons-logging</artifactId>
  142. <scope>compile</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>log4j</groupId>
  146. <artifactId>log4j</artifactId>
  147. <scope>compile</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>junit</groupId>
  151. <artifactId>junit</artifactId>
  152. <scope>test</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>commons-beanutils</groupId>
  156. <artifactId>commons-beanutils</artifactId>
  157. <scope>compile</scope>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.commons</groupId>
  161. <artifactId>commons-configuration2</artifactId>
  162. <scope>compile</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.apache.commons</groupId>
  166. <artifactId>commons-lang3</artifactId>
  167. <scope>compile</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.apache.commons</groupId>
  171. <artifactId>commons-text</artifactId>
  172. <scope>compile</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.slf4j</groupId>
  176. <artifactId>slf4j-api</artifactId>
  177. <scope>compile</scope>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.slf4j</groupId>
  181. <artifactId>slf4j-log4j12</artifactId>
  182. <scope>compile</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.mockito</groupId>
  186. <artifactId>mockito-all</artifactId>
  187. <scope>test</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.avro</groupId>
  191. <artifactId>avro</artifactId>
  192. <scope>compile</scope>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.apache.ant</groupId>
  196. <artifactId>ant</artifactId>
  197. <scope>test</scope>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.google.re2j</groupId>
  201. <artifactId>re2j</artifactId>
  202. <scope>compile</scope>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.google.protobuf</groupId>
  206. <artifactId>protobuf-java</artifactId>
  207. <scope>compile</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.google.code.gson</groupId>
  211. <artifactId>gson</artifactId>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.hadoop</groupId>
  215. <artifactId>hadoop-auth</artifactId>
  216. <scope>compile</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.apache.hadoop</groupId>
  220. <artifactId>hadoop-auth</artifactId>
  221. <type>test-jar</type>
  222. <scope>test</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.hadoop</groupId>
  226. <artifactId>hadoop-minikdc</artifactId>
  227. <scope>test</scope>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.jcraft</groupId>
  231. <artifactId>jsch</artifactId>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.apache.curator</groupId>
  235. <artifactId>curator-test</artifactId>
  236. <scope>test</scope>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.apache.curator</groupId>
  240. <artifactId>curator-client</artifactId>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.curator</groupId>
  244. <artifactId>curator-recipes</artifactId>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.google.code.findbugs</groupId>
  248. <artifactId>jsr305</artifactId>
  249. <scope>compile</scope>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.sshd</groupId>
  253. <artifactId>sshd-core</artifactId>
  254. <scope>test</scope>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.apache.htrace</groupId>
  258. <artifactId>htrace-core4</artifactId>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.apache.zookeeper</groupId>
  262. <artifactId>zookeeper</artifactId>
  263. <exclusions>
  264. <exclusion>
  265. <groupId>org.jboss.netty</groupId>
  266. <artifactId>netty</artifactId>
  267. </exclusion>
  268. <exclusion>
  269. <!-- otherwise seems to drag in junit 3.8.1 via jline -->
  270. <groupId>junit</groupId>
  271. <artifactId>junit</artifactId>
  272. </exclusion>
  273. <exclusion>
  274. <groupId>com.sun.jdmk</groupId>
  275. <artifactId>jmxtools</artifactId>
  276. </exclusion>
  277. <exclusion>
  278. <groupId>com.sun.jmx</groupId>
  279. <artifactId>jmxri</artifactId>
  280. </exclusion>
  281. </exclusions>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.apache.zookeeper</groupId>
  285. <artifactId>zookeeper</artifactId>
  286. <type>test-jar</type>
  287. <scope>test</scope>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.apache.commons</groupId>
  291. <artifactId>commons-compress</artifactId>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.bouncycastle</groupId>
  295. <artifactId>bcprov-jdk16</artifactId>
  296. <scope>test</scope>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.apache.kerby</groupId>
  300. <artifactId>kerb-simplekdc</artifactId>
  301. </dependency>
  302. <dependency>
  303. <groupId>com.fasterxml.jackson.core</groupId>
  304. <artifactId>jackson-databind</artifactId>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.codehaus.woodstox</groupId>
  308. <artifactId>stax2-api</artifactId>
  309. <scope>compile</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>com.fasterxml.woodstox</groupId>
  313. <artifactId>woodstox-core</artifactId>
  314. <scope>compile</scope>
  315. </dependency>
  316. <dependency>
  317. <groupId>com.squareup.okhttp3</groupId>
  318. <artifactId>mockwebserver</artifactId>
  319. <scope>test</scope>
  320. </dependency>
  321. <dependency>
  322. <groupId>dnsjava</groupId>
  323. <artifactId>dnsjava</artifactId>
  324. <scope>compile</scope>
  325. </dependency>
  326. </dependencies>
  327. <build>
  328. <!--
  329. Include all files in src/main/resources. By default, do not apply property
  330. substitution (filtering=false), but do apply property substitution to
  331. common-version-info.properties (filtering=true). This will substitute the
  332. version information correctly, but prevent Maven from altering other files
  333. like core-default.xml.
  334. -->
  335. <resources>
  336. <resource>
  337. <directory>${basedir}/src/main/resources</directory>
  338. <excludes>
  339. <exclude>common-version-info.properties</exclude>
  340. </excludes>
  341. <filtering>false</filtering>
  342. </resource>
  343. <resource>
  344. <directory>${basedir}/src/main/resources</directory>
  345. <includes>
  346. <include>common-version-info.properties</include>
  347. </includes>
  348. <filtering>true</filtering>
  349. </resource>
  350. </resources>
  351. <plugins>
  352. <plugin>
  353. <groupId>org.apache.hadoop</groupId>
  354. <artifactId>hadoop-maven-plugins</artifactId>
  355. <executions>
  356. <execution>
  357. <id>version-info</id>
  358. <phase>generate-resources</phase>
  359. <goals>
  360. <goal>version-info</goal>
  361. </goals>
  362. <configuration>
  363. <source>
  364. <directory>${basedir}/src/main</directory>
  365. <includes>
  366. <include>java/**/*.java</include>
  367. <include>proto/**/*.proto</include>
  368. </includes>
  369. </source>
  370. </configuration>
  371. </execution>
  372. <execution>
  373. <id>compile-protoc</id>
  374. <goals>
  375. <goal>protoc</goal>
  376. </goals>
  377. <configuration>
  378. <protocVersion>${protobuf.version}</protocVersion>
  379. <protocCommand>${protoc.path}</protocCommand>
  380. <imports>
  381. <param>${basedir}/src/main/proto</param>
  382. </imports>
  383. <source>
  384. <directory>${basedir}/src/main/proto</directory>
  385. <includes>
  386. <include>HAServiceProtocol.proto</include>
  387. <include>IpcConnectionContext.proto</include>
  388. <include>ProtocolInfo.proto</include>
  389. <include>RpcHeader.proto</include>
  390. <include>ZKFCProtocol.proto</include>
  391. <include>ProtobufRpcEngine.proto</include>
  392. <include>Security.proto</include>
  393. <include>GetUserMappingsProtocol.proto</include>
  394. <include>TraceAdmin.proto</include>
  395. <include>RefreshAuthorizationPolicyProtocol.proto</include>
  396. <include>RefreshUserMappingsProtocol.proto</include>
  397. <include>RefreshCallQueueProtocol.proto</include>
  398. <include>GenericRefreshProtocol.proto</include>
  399. <include>FSProtos.proto</include>
  400. </includes>
  401. </source>
  402. </configuration>
  403. </execution>
  404. <execution>
  405. <id>compile-test-protoc</id>
  406. <goals>
  407. <goal>test-protoc</goal>
  408. </goals>
  409. <configuration>
  410. <protocVersion>${protobuf.version}</protocVersion>
  411. <protocCommand>${protoc.path}</protocCommand>
  412. <imports>
  413. <param>${basedir}/src/test/proto</param>
  414. </imports>
  415. <source>
  416. <directory>${basedir}/src/test/proto</directory>
  417. <includes>
  418. <include>test.proto</include>
  419. <include>test_rpc_service.proto</include>
  420. </includes>
  421. </source>
  422. </configuration>
  423. </execution>
  424. <execution>
  425. <id>resource-gz</id>
  426. <phase>generate-resources</phase>
  427. <goals>
  428. <goal>resource-gz</goal>
  429. </goals>
  430. <configuration>
  431. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  432. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  433. <extensions>js,css</extensions>
  434. </configuration>
  435. </execution>
  436. </executions>
  437. </plugin>
  438. <plugin>
  439. <groupId>org.apache.maven.plugins</groupId>
  440. <artifactId>maven-surefire-plugin</artifactId>
  441. <configuration>
  442. <systemPropertyVariables>
  443. <startKdc>${startKdc}</startKdc>
  444. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  445. <runningWithNative>${runningWithNative}</runningWithNative>
  446. </systemPropertyVariables>
  447. <properties>
  448. <property>
  449. <name>listener</name>
  450. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  451. </property>
  452. </properties>
  453. </configuration>
  454. </plugin>
  455. <plugin>
  456. <groupId>org.apache.avro</groupId>
  457. <artifactId>avro-maven-plugin</artifactId>
  458. <executions>
  459. <execution>
  460. <id>generate-avro-test-sources</id>
  461. <phase>generate-test-sources</phase>
  462. <goals>
  463. <goal>schema</goal>
  464. </goals>
  465. </execution>
  466. </executions>
  467. <configuration>
  468. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  469. </configuration>
  470. </plugin>
  471. <plugin>
  472. <groupId>org.apache.maven.plugins</groupId>
  473. <artifactId>maven-antrun-plugin</artifactId>
  474. <executions>
  475. <execution>
  476. <id>create-log-dir</id>
  477. <phase>process-test-resources</phase>
  478. <goals>
  479. <goal>run</goal>
  480. </goals>
  481. <configuration>
  482. <target>
  483. <!--
  484. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  485. TODO: from a previous run is present
  486. -->
  487. <delete dir="${test.build.data}"/>
  488. <mkdir dir="${test.build.data}"/>
  489. <mkdir dir="${hadoop.log.dir}"/>
  490. <copy toDir="${project.build.directory}/test-classes">
  491. <fileset dir="${basedir}/src/main/conf"/>
  492. </copy>
  493. </target>
  494. </configuration>
  495. </execution>
  496. <execution>
  497. <phase>pre-site</phase>
  498. <goals>
  499. <goal>run</goal>
  500. </goals>
  501. <configuration>
  502. <target>
  503. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  504. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  505. </target>
  506. </configuration>
  507. </execution>
  508. </executions>
  509. </plugin>
  510. <plugin>
  511. <groupId>org.apache.rat</groupId>
  512. <artifactId>apache-rat-plugin</artifactId>
  513. <configuration>
  514. <excludes>
  515. <exclude>.idea/**</exclude>
  516. <exclude>src/main/conf/*</exclude>
  517. <exclude>dev-support/jdiff/**</exclude>
  518. <exclude>src/main/native/*</exclude>
  519. <exclude>src/main/native/config/*</exclude>
  520. <exclude>src/main/native/m4/*</exclude>
  521. <exclude>src/test/empty-file</exclude>
  522. <exclude>src/test/all-tests</exclude>
  523. <exclude>src/test/resources/kdc/ldif/users.ldif</exclude>
  524. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.h</exclude>
  525. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c</exclude>
  526. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc.h</exclude>
  527. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc.c</exclude>
  528. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc_encoder.h</exclude>
  529. <exclude>src/main/native/gtest/**/*</exclude>
  530. <exclude>src/test/resources/test-untar.tgz</exclude>
  531. <exclude>src/test/resources/test.har/_SUCCESS</exclude>
  532. <exclude>src/test/resources/test.har/_index</exclude>
  533. <exclude>src/test/resources/test.har/_masterindex</exclude>
  534. <exclude>src/test/resources/test.har/part-0</exclude>
  535. <exclude>src/test/resources/javakeystoreprovider.password</exclude>
  536. <exclude>dev-support/jdiff-workaround.patch</exclude>
  537. </excludes>
  538. </configuration>
  539. </plugin>
  540. <plugin>
  541. <groupId>org.codehaus.mojo</groupId>
  542. <artifactId>exec-maven-plugin</artifactId>
  543. <executions>
  544. <execution>
  545. <id>shelldocs</id>
  546. <phase>pre-site</phase>
  547. <goals>
  548. <goal>exec</goal>
  549. </goals>
  550. <configuration>
  551. <executable>${basedir}/../../dev-support/bin/shelldocs</executable>
  552. <workingDirectory>src/site/markdown</workingDirectory>
  553. <arguments>
  554. <argument>--skipprnorep</argument>
  555. <argument>--output</argument>
  556. <argument>${basedir}/src/site/markdown/UnixShellAPI.md</argument>
  557. <argument>--input</argument>
  558. <argument>${basedir}/src/main/bin/hadoop-functions.sh</argument>
  559. </arguments>
  560. </configuration>
  561. </execution>
  562. </executions>
  563. </plugin>
  564. <plugin>
  565. <artifactId>maven-clean-plugin</artifactId>
  566. <configuration>
  567. <filesets>
  568. <fileset>
  569. <directory>src/site/markdown</directory>
  570. <includes>
  571. <include>UnixShellAPI.md</include>
  572. </includes>
  573. <followSymlinks>false</followSymlinks>
  574. </fileset>
  575. <fileset>
  576. <directory>src/site/resources</directory>
  577. <includes>
  578. <include>configuration.xsl</include>
  579. <include>core-default.xml</include>
  580. </includes>
  581. <followSymlinks>false</followSymlinks>
  582. </fileset>
  583. </filesets>
  584. </configuration>
  585. </plugin>
  586. </plugins>
  587. </build>
  588. <profiles>
  589. <profile>
  590. <id>native</id>
  591. <activation>
  592. <activeByDefault>false</activeByDefault>
  593. </activation>
  594. <properties>
  595. <require.bzip2>false</require.bzip2>
  596. <snappy.prefix></snappy.prefix>
  597. <snappy.lib></snappy.lib>
  598. <snappy.include></snappy.include>
  599. <require.snappy>false</require.snappy>
  600. <zstd.prefix></zstd.prefix>
  601. <zstd.lib></zstd.lib>
  602. <zstd.include></zstd.include>
  603. <require.zstd>false</require.zstd>
  604. <openssl.prefix></openssl.prefix>
  605. <openssl.lib></openssl.lib>
  606. <openssl.include></openssl.include>
  607. <require.isal>false</require.isal>
  608. <isal.prefix></isal.prefix>
  609. <isal.lib></isal.lib>
  610. <require.openssl>false</require.openssl>
  611. <runningWithNative>true</runningWithNative>
  612. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  613. <extra.libhadoop.rpath></extra.libhadoop.rpath>
  614. </properties>
  615. <build>
  616. <plugins>
  617. <plugin>
  618. <groupId>org.apache.maven.plugins</groupId>
  619. <artifactId>maven-enforcer-plugin</artifactId>
  620. <executions>
  621. <execution>
  622. <id>enforce-os</id>
  623. <goals>
  624. <goal>enforce</goal>
  625. </goals>
  626. <configuration>
  627. <rules>
  628. <requireOS>
  629. <family>mac</family>
  630. <family>unix</family>
  631. <message>native build only supported on Mac or Unix</message>
  632. </requireOS>
  633. </rules>
  634. <fail>true</fail>
  635. </configuration>
  636. </execution>
  637. </executions>
  638. </plugin>
  639. <plugin>
  640. <groupId>org.codehaus.mojo</groupId>
  641. <artifactId>native-maven-plugin</artifactId>
  642. <executions>
  643. <execution>
  644. <phase>compile</phase>
  645. <goals>
  646. <goal>javah</goal>
  647. </goals>
  648. <configuration>
  649. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  650. <javahClassNames>
  651. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  652. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  653. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Compressor</javahClassName>
  654. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Decompressor</javahClassName>
  655. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  656. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  657. <javahClassName>org.apache.hadoop.io.nativeio.SharedFileDescriptorFactory</javahClassName>
  658. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  659. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  660. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  661. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardCompressor</javahClassName>
  662. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardDecompressor</javahClassName>
  663. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  664. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  665. <javahClassName>org.apache.hadoop.io.erasurecode.ErasureCodeNative</javahClassName>
  666. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeRSRawEncoder</javahClassName>
  667. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeRSRawDecoder</javahClassName>
  668. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawEncoder</javahClassName>
  669. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawDecoder</javahClassName>
  670. <javahClassName>org.apache.hadoop.crypto.OpensslCipher</javahClassName>
  671. <javahClassName>org.apache.hadoop.crypto.random.OpensslSecureRandom</javahClassName>
  672. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  673. <javahClassName>org.apache.hadoop.net.unix.DomainSocket</javahClassName>
  674. <javahClassName>org.apache.hadoop.net.unix.DomainSocketWatcher</javahClassName>
  675. </javahClassNames>
  676. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  677. </configuration>
  678. </execution>
  679. </executions>
  680. </plugin>
  681. <plugin>
  682. <groupId>org.apache.hadoop</groupId>
  683. <artifactId>hadoop-maven-plugins</artifactId>
  684. <executions>
  685. <execution>
  686. <id>cmake-compile</id>
  687. <phase>compile</phase>
  688. <goals><goal>cmake-compile</goal></goals>
  689. <configuration>
  690. <source>${basedir}/src</source>
  691. <vars>
  692. <GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
  693. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  694. <REQUIRE_BZIP2>${require.bzip2}</REQUIRE_BZIP2>
  695. <REQUIRE_SNAPPY>${require.snappy}</REQUIRE_SNAPPY>
  696. <REQUIRE_ZSTD>${require.zstd}</REQUIRE_ZSTD>
  697. <CUSTOM_SNAPPY_PREFIX>${snappy.prefix}</CUSTOM_SNAPPY_PREFIX>
  698. <CUSTOM_SNAPPY_LIB>${snappy.lib} </CUSTOM_SNAPPY_LIB>
  699. <CUSTOM_SNAPPY_INCLUDE>${snappy.include} </CUSTOM_SNAPPY_INCLUDE>
  700. <CUSTOM_ZSTD_PREFIX>${zstd.prefix}</CUSTOM_ZSTD_PREFIX>
  701. <CUSTOM_ZSTD_LIB>${zstd.lib} </CUSTOM_ZSTD_LIB>
  702. <CUSTOM_ZSTD_INCLUDE>${zstd.include} </CUSTOM_ZSTD_INCLUDE>
  703. <REQUIRE_ISAL>${require.isal} </REQUIRE_ISAL>
  704. <CUSTOM_ISAL_PREFIX>${isal.prefix} </CUSTOM_ISAL_PREFIX>
  705. <CUSTOM_ISAL_LIB>${isal.lib} </CUSTOM_ISAL_LIB>
  706. <REQUIRE_OPENSSL>${require.openssl} </REQUIRE_OPENSSL>
  707. <CUSTOM_OPENSSL_PREFIX>${openssl.prefix} </CUSTOM_OPENSSL_PREFIX>
  708. <CUSTOM_OPENSSL_LIB>${openssl.lib} </CUSTOM_OPENSSL_LIB>
  709. <CUSTOM_OPENSSL_INCLUDE>${openssl.include} </CUSTOM_OPENSSL_INCLUDE>
  710. <EXTRA_LIBHADOOP_RPATH>${extra.libhadoop.rpath}</EXTRA_LIBHADOOP_RPATH>
  711. </vars>
  712. </configuration>
  713. </execution>
  714. <execution>
  715. <id>test_bulk_crc32</id>
  716. <goals><goal>cmake-test</goal></goals>
  717. <phase>test</phase>
  718. <configuration>
  719. <binary>${project.build.directory}/native/test_bulk_crc32</binary>
  720. <timeout>1200</timeout>
  721. <results>${project.build.directory}/native-results</results>
  722. </configuration>
  723. </execution>
  724. <execution>
  725. <id>erasure_code_test</id>
  726. <goals><goal>cmake-test</goal></goals>
  727. <phase>test</phase>
  728. <configuration>
  729. <binary>${project.build.directory}/native/erasure_code_test</binary>
  730. <timeout>300</timeout>
  731. <results>${project.build.directory}/native-results</results>
  732. <skipIfMissing>true</skipIfMissing>
  733. <env>
  734. <LD_LIBRARY_PATH>${LD_LIBRARY_PATH}:${isal.lib}:${isal.prefix}:/usr/lib</LD_LIBRARY_PATH>
  735. </env>
  736. </configuration>
  737. </execution>
  738. </executions>
  739. </plugin>
  740. </plugins>
  741. </build>
  742. </profile>
  743. <profile>
  744. <id>native-win</id>
  745. <activation>
  746. <os>
  747. <family>Windows</family>
  748. </os>
  749. </activation>
  750. <properties>
  751. <snappy.prefix></snappy.prefix>
  752. <snappy.lib></snappy.lib>
  753. <snappy.include></snappy.include>
  754. <require.isal>false</require.isal>
  755. <isal.prefix></isal.prefix>
  756. <isal.lib></isal.lib>
  757. <require.snappy>false</require.snappy>
  758. <bundle.snappy.in.bin>true</bundle.snappy.in.bin>
  759. <zstd.prefix></zstd.prefix>
  760. <zstd.lib></zstd.lib>
  761. <zstd.include></zstd.include>
  762. <require.ztsd>false</require.ztsd>
  763. <bundle.zstd.in.bin>true</bundle.zstd.in.bin>
  764. <openssl.prefix></openssl.prefix>
  765. <openssl.lib></openssl.lib>
  766. <openssl.include></openssl.include>
  767. <require.openssl>false</require.openssl>
  768. <runningWithNative>true</runningWithNative>
  769. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  770. </properties>
  771. <build>
  772. <plugins>
  773. <plugin>
  774. <groupId>org.apache.maven.plugins</groupId>
  775. <artifactId>maven-enforcer-plugin</artifactId>
  776. <executions>
  777. <execution>
  778. <id>enforce-os</id>
  779. <goals>
  780. <goal>enforce</goal>
  781. </goals>
  782. <configuration>
  783. <rules>
  784. <requireOS>
  785. <family>windows</family>
  786. <message>native-win build only supported on Windows</message>
  787. </requireOS>
  788. </rules>
  789. <fail>true</fail>
  790. </configuration>
  791. </execution>
  792. </executions>
  793. </plugin>
  794. <plugin>
  795. <groupId>org.codehaus.mojo</groupId>
  796. <artifactId>native-maven-plugin</artifactId>
  797. <executions>
  798. <execution>
  799. <phase>compile</phase>
  800. <goals>
  801. <goal>javah</goal>
  802. </goals>
  803. <configuration>
  804. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  805. <javahClassNames>
  806. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  807. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  808. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  809. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  810. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  811. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  812. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  813. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardCompressor</javahClassName>
  814. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardDecompressor</javahClassName>
  815. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  816. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  817. <javahClassName>org.apache.hadoop.io.erasurecode.ErasureCodeNative</javahClassName>
  818. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeRSRawEncoder</javahClassName>
  819. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeRSRawDecoder</javahClassName>
  820. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawEncoder</javahClassName>
  821. <javahClassName>org.apache.hadoop.io.erasurecode.rawcoder.NativeXORRawDecoder</javahClassName>
  822. <javahClassName>org.apache.hadoop.crypto.OpensslCipher</javahClassName>
  823. <javahClassName>org.apache.hadoop.crypto.random.OpensslSecureRandom</javahClassName>
  824. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  825. </javahClassNames>
  826. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  827. </configuration>
  828. </execution>
  829. </executions>
  830. </plugin>
  831. <plugin>
  832. <groupId>org.codehaus.mojo</groupId>
  833. <artifactId>exec-maven-plugin</artifactId>
  834. <executions>
  835. <execution>
  836. <id>convert-ms-winutils</id>
  837. <phase>generate-sources</phase>
  838. <goals>
  839. <goal>exec</goal>
  840. </goals>
  841. <configuration>
  842. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  843. <arguments>
  844. <argument>${basedir}\src\main\winutils</argument>
  845. <argument>${project.build.directory}</argument>
  846. </arguments>
  847. </configuration>
  848. </execution>
  849. <execution>
  850. <id>compile-ms-winutils</id>
  851. <phase>compile</phase>
  852. <goals>
  853. <goal>exec</goal>
  854. </goals>
  855. <configuration>
  856. <executable>msbuild</executable>
  857. <arguments>
  858. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  859. <argument>/nologo</argument>
  860. <argument>/p:Configuration=Release</argument>
  861. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  862. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  863. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  864. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  865. </arguments>
  866. </configuration>
  867. </execution>
  868. <execution>
  869. <id>convert-ms-native-dll</id>
  870. <phase>generate-sources</phase>
  871. <goals>
  872. <goal>exec</goal>
  873. </goals>
  874. <configuration>
  875. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  876. <arguments>
  877. <argument>${basedir}\src\main\native</argument>
  878. <argument>${project.build.directory}</argument>
  879. </arguments>
  880. </configuration>
  881. </execution>
  882. <execution>
  883. <id>compile-ms-native-dll</id>
  884. <phase>compile</phase>
  885. <goals>
  886. <goal>exec</goal>
  887. </goals>
  888. <configuration>
  889. <executable>msbuild</executable>
  890. <arguments>
  891. <argument>${basedir}/src/main/native/native.sln</argument>
  892. <argument>/nologo</argument>
  893. <argument>/p:Configuration=Release</argument>
  894. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  895. <argument>/p:CustomSnappyPrefix=${snappy.prefix}</argument>
  896. <argument>/p:CustomSnappyLib=${snappy.lib}</argument>
  897. <argument>/p:CustomSnappyInclude=${snappy.include}</argument>
  898. <argument>/p:RequireSnappy=${require.snappy}</argument>
  899. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  900. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  901. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  902. <argument>/p:RequireZstd=${require.ztsd}</argument>
  903. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  904. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  905. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  906. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  907. <argument>/p:RequireIsal=${require.isal}</argument>
  908. <argument>/p:CustomIsalPrefix=${isal.prefix}</argument>
  909. <argument>/p:CustomIsalLib=${isal.lib}</argument>
  910. </arguments>
  911. </configuration>
  912. </execution>
  913. </executions>
  914. </plugin>
  915. </plugins>
  916. </build>
  917. </profile>
  918. <!-- profile that starts ApacheDS KDC server -->
  919. <profile>
  920. <id>startKdc</id>
  921. <activation>
  922. <property>
  923. <name>startKdc</name>
  924. <value>true</value>
  925. </property>
  926. </activation>
  927. <build>
  928. <plugins>
  929. <plugin>
  930. <groupId>org.apache.maven.plugins</groupId>
  931. <artifactId>maven-enforcer-plugin</artifactId>
  932. <executions>
  933. <execution>
  934. <id>enforce-os</id>
  935. <goals>
  936. <goal>enforce</goal>
  937. </goals>
  938. <configuration>
  939. <rules>
  940. <!-- At present supports Mac and Unix OS family -->
  941. <requireOS>
  942. <family>mac</family>
  943. <family>unix</family>
  944. </requireOS>
  945. </rules>
  946. <fail>true</fail>
  947. </configuration>
  948. </execution>
  949. </executions>
  950. </plugin>
  951. <plugin>
  952. <groupId>org.apache.maven.plugins</groupId>
  953. <artifactId>maven-antrun-plugin</artifactId>
  954. <executions>
  955. <execution>
  956. <id>kdc</id>
  957. <phase>compile</phase>
  958. <goals>
  959. <goal>run</goal>
  960. </goals>
  961. <configuration>
  962. <target>
  963. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  964. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  965. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  966. <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"/>
  967. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  968. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  969. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  970. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  971. <fileset dir="${kdc.resource.dir}/ldif"/>
  972. </copy>
  973. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  974. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  975. </target>
  976. </configuration>
  977. </execution>
  978. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  979. <execution>
  980. <id>killKdc</id>
  981. <phase>test</phase>
  982. <goals>
  983. <goal>run</goal>
  984. </goals>
  985. <configuration>
  986. <target>
  987. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  988. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  989. </target>
  990. </configuration>
  991. </execution>
  992. </executions>
  993. </plugin>
  994. </plugins>
  995. </build>
  996. </profile>
  997. <profile>
  998. <id>parallel-tests</id>
  999. <build>
  1000. <plugins>
  1001. <plugin>
  1002. <groupId>org.apache.hadoop</groupId>
  1003. <artifactId>hadoop-maven-plugins</artifactId>
  1004. <executions>
  1005. <execution>
  1006. <id>parallel-tests-createdir</id>
  1007. <goals>
  1008. <goal>parallel-tests-createdir</goal>
  1009. </goals>
  1010. </execution>
  1011. </executions>
  1012. </plugin>
  1013. <plugin>
  1014. <groupId>org.apache.maven.plugins</groupId>
  1015. <artifactId>maven-surefire-plugin</artifactId>
  1016. <configuration>
  1017. <forkCount>${testsThreadCount}</forkCount>
  1018. <reuseForks>false</reuseForks>
  1019. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  1020. <systemPropertyVariables>
  1021. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  1022. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  1023. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  1024. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  1025. <!-- Due to a Maven quirk, setting this to just -->
  1026. <!-- surefire.forkNumber won't do the parameter substitution. -->
  1027. <!-- Putting a prefix in front of it like "fork-" makes it -->
  1028. <!-- work. -->
  1029. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  1030. </systemPropertyVariables>
  1031. </configuration>
  1032. </plugin>
  1033. </plugins>
  1034. </build>
  1035. </profile>
  1036. <profile>
  1037. <id>releasedocs</id>
  1038. <activation>
  1039. <activeByDefault>false</activeByDefault>
  1040. </activation>
  1041. <build>
  1042. <plugins>
  1043. <plugin>
  1044. <groupId>org.codehaus.mojo</groupId>
  1045. <artifactId>exec-maven-plugin</artifactId>
  1046. <executions>
  1047. <execution>
  1048. <id>releasedocs</id>
  1049. <phase>pre-site</phase>
  1050. <goals>
  1051. <goal>exec</goal>
  1052. </goals>
  1053. <configuration>
  1054. <executable>${basedir}/../../dev-support/bin/releasedocmaker</executable>
  1055. <requiresOnline>true</requiresOnline>
  1056. <arguments>
  1057. <argument>--index</argument>
  1058. <argument>--license</argument>
  1059. <argument>--outputdir</argument>
  1060. <argument>${basedir}/src/site/markdown/release</argument>
  1061. <argument>--project</argument>
  1062. <argument>HADOOP</argument>
  1063. <argument>--project</argument>
  1064. <argument>HDFS</argument>
  1065. <argument>--project</argument>
  1066. <argument>MAPREDUCE</argument>
  1067. <argument>--project</argument>
  1068. <argument>YARN</argument>
  1069. <argument>--projecttitle</argument>
  1070. <argument>Apache Hadoop</argument>
  1071. <argument>--usetoday</argument>
  1072. <argument>--fileversions</argument>
  1073. <argument>--dirversions</argument>
  1074. <argument>--version</argument>
  1075. <argument>${project.version}</argument>
  1076. </arguments>
  1077. </configuration>
  1078. </execution>
  1079. </executions>
  1080. </plugin>
  1081. <plugin>
  1082. <artifactId>maven-clean-plugin</artifactId>
  1083. <configuration>
  1084. <filesets>
  1085. <fileset>
  1086. <directory>src/site/markdown/release</directory>
  1087. <includes>
  1088. <include>${project.version}/</include>
  1089. <include>index.md</include>
  1090. </includes>
  1091. <followSymlinks>false</followSymlinks>
  1092. </fileset>
  1093. </filesets>
  1094. </configuration>
  1095. </plugin>
  1096. </plugins>
  1097. </build>
  1098. </profile>
  1099. <!-- profile to test shell code -->
  1100. <profile>
  1101. <id>shelltest</id>
  1102. <activation>
  1103. <property>
  1104. <name>!skipTests</name>
  1105. </property>
  1106. </activation>
  1107. <build>
  1108. <plugins>
  1109. <plugin>
  1110. <artifactId>maven-antrun-plugin</artifactId>
  1111. <executions>
  1112. <execution>
  1113. <id>common-test-bats-driver</id>
  1114. <phase>test</phase>
  1115. <goals>
  1116. <goal>run</goal>
  1117. </goals>
  1118. <configuration>
  1119. <target>
  1120. <exec dir="src/test/scripts"
  1121. executable="bash"
  1122. failonerror="true">
  1123. <arg value="./run-bats.sh" />
  1124. </exec>
  1125. </target>
  1126. </configuration>
  1127. </execution>
  1128. </executions>
  1129. </plugin>
  1130. </plugins>
  1131. </build>
  1132. </profile>
  1133. </profiles>
  1134. </project>