pom.xml 22 KB

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