pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <?xml version="1.0"?>
  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. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <parent>
  18. <artifactId>hadoop-yarn-server</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.5.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  24. <version>3.5.0-SNAPSHOT</version>
  25. <name>Apache Hadoop YARN NodeManager</name>
  26. <properties>
  27. <!-- Basedir eeded for generating FindBugs warnings using parent pom -->
  28. <yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
  29. <container-executor.conf.dir>../etc/hadoop</container-executor.conf.dir>
  30. <container-executor.additional_cflags></container-executor.additional_cflags>
  31. </properties>
  32. <dependencies>
  33. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  34. <dependency>
  35. <groupId>org.apache.hadoop</groupId>
  36. <artifactId>hadoop-common</artifactId>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-yarn-common</artifactId>
  43. </dependency>
  44. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-yarn-api</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-registry</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>javax.xml.bind</groupId>
  55. <artifactId>jaxb-api</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.codehaus.jettison</groupId>
  59. <artifactId>jettison</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>javax.servlet</groupId>
  63. <artifactId>javax.servlet-api</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>commons-codec</groupId>
  67. <artifactId>commons-codec</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.sun.jersey</groupId>
  71. <artifactId>jersey-core</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.sun.jersey</groupId>
  75. <artifactId>jersey-client</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.eclipse.jetty</groupId>
  79. <artifactId>jetty-util</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.eclipse.jetty.websocket</groupId>
  83. <artifactId>javax-websocket-server-impl</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.hadoop.thirdparty</groupId>
  87. <artifactId>hadoop-shaded-guava</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.slf4j</groupId>
  91. <artifactId>slf4j-api</artifactId>
  92. </dependency>
  93. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  94. <dependency>
  95. <groupId>org.apache.hadoop</groupId>
  96. <artifactId>hadoop-annotations</artifactId>
  97. </dependency>
  98. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  99. <dependency>
  100. <groupId>org.apache.hadoop</groupId>
  101. <artifactId>hadoop-common</artifactId>
  102. <type>test-jar</type>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.google.inject.extensions</groupId>
  107. <artifactId>guice-servlet</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.google.protobuf</groupId>
  111. <artifactId>protobuf-java</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>io.dropwizard.metrics</groupId>
  115. <artifactId>metrics-core</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>junit</groupId>
  119. <artifactId>junit</artifactId>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.junit.jupiter</groupId>
  124. <artifactId>junit-jupiter-params</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.mockito</groupId>
  129. <artifactId>mockito-core</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.assertj</groupId>
  134. <artifactId>assertj-core</artifactId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.google.inject</groupId>
  139. <artifactId>guice</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  143. <artifactId>jersey-test-framework-grizzly2</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.github.pjfanning</groupId>
  148. <artifactId>jersey-json</artifactId>
  149. <exclusions>
  150. <exclusion>
  151. <groupId>com.fasterxml.jackson.core</groupId>
  152. <artifactId>jackson-core</artifactId>
  153. </exclusion>
  154. <exclusion>
  155. <groupId>com.fasterxml.jackson.core</groupId>
  156. <artifactId>jackson-databind</artifactId>
  157. </exclusion>
  158. <exclusion>
  159. <groupId>com.fasterxml.jackson.jaxrs</groupId>
  160. <artifactId>jackson-jaxrs-json-provider</artifactId>
  161. </exclusion>
  162. <exclusion>
  163. <groupId>org.codehaus.jettison</groupId>
  164. <artifactId>jettison</artifactId>
  165. </exclusion>
  166. </exclusions>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.sun.jersey.contribs</groupId>
  170. <artifactId>jersey-guice</artifactId>
  171. </dependency>
  172. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  173. <dependency>
  174. <groupId>org.apache.hadoop</groupId>
  175. <artifactId>hadoop-yarn-common</artifactId>
  176. <type>test-jar</type>
  177. <scope>test</scope>
  178. </dependency>
  179. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  180. <dependency>
  181. <groupId>org.apache.hadoop</groupId>
  182. <artifactId>hadoop-yarn-server-common</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>${leveldbjni.group}</groupId>
  186. <artifactId>leveldbjni-all</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>net.java.dev.jna</groupId>
  190. <artifactId>jna</artifactId>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.apache.hadoop</groupId>
  194. <artifactId>hadoop-yarn-server-common</artifactId>
  195. <type>test-jar</type>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.apache.hadoop</groupId>
  200. <artifactId>hadoop-minikdc</artifactId>
  201. <scope>test</scope>
  202. </dependency>
  203. </dependencies>
  204. <profiles>
  205. <profile>
  206. <id>native</id>
  207. <build>
  208. <plugins>
  209. <plugin>
  210. <groupId>org.apache.hadoop</groupId>
  211. <artifactId>hadoop-maven-plugins</artifactId>
  212. <executions>
  213. <execution>
  214. <id>cmake-compile</id>
  215. <phase>compile</phase>
  216. <goals><goal>cmake-compile</goal></goals>
  217. <configuration>
  218. <source>${basedir}/src</source>
  219. <vars>
  220. <HADOOP_CONF_DIR>${container-executor.conf.dir}</HADOOP_CONF_DIR>
  221. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  222. </vars>
  223. <env>
  224. <CFLAGS>${container-executor.additional_cflags}</CFLAGS>
  225. </env>
  226. </configuration>
  227. </execution>
  228. <execution>
  229. <id>test-container-executor</id>
  230. <goals><goal>cmake-test</goal></goals>
  231. <phase>test</phase>
  232. <configuration>
  233. <binary>${project.build.directory}/native/target/usr/local/bin/test-container-executor</binary>
  234. <timeout>300</timeout>
  235. <results>${project.build.directory}/native-results</results>
  236. </configuration>
  237. </execution>
  238. <execution>
  239. <id>cetest</id>
  240. <goals><goal>cmake-test</goal></goals>
  241. <phase>test</phase>
  242. <configuration>
  243. <!-- this should match the xml name without the TEST-part down below -->
  244. <testName>cetest</testName>
  245. <workingDirectory>${project.build.directory}/native/test</workingDirectory>
  246. <source>${basedir}/src</source>
  247. <binary>${project.build.directory}/native/test/cetest</binary>
  248. <args>
  249. <arg>--gtest_filter=-Perf.</arg>
  250. <arg>--gtest_output=xml:${project.build.directory}/surefire-reports/TEST-cetest.xml</arg>
  251. </args>
  252. <results>${project.build.directory}/surefire-reports</results>
  253. </configuration>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. <plugin>
  258. <groupId>org.apache.maven.plugins</groupId>
  259. <artifactId>maven-antrun-plugin</artifactId>
  260. <executions>
  261. <execution>
  262. <id>make</id>
  263. <phase>compile</phase>
  264. <goals>
  265. <goal>run</goal>
  266. </goals>
  267. <configuration>
  268. <target>
  269. <copy todir="${project.build.directory}/native/test/"
  270. overwrite="true">
  271. <fileset dir="${basedir}/src/main/native/container-executor/resources/test" />
  272. </copy>
  273. </target>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. </plugins>
  279. </build>
  280. <activation>
  281. <activeByDefault>false</activeByDefault>
  282. </activation>
  283. </profile>
  284. <profile>
  285. <id>visualize</id>
  286. <activation>
  287. <activeByDefault>false</activeByDefault>
  288. </activation>
  289. <build>
  290. <plugins>
  291. <plugin>
  292. <groupId>org.codehaus.mojo</groupId>
  293. <artifactId>exec-maven-plugin</artifactId>
  294. <executions>
  295. <execution>
  296. <phase>compile</phase>
  297. <goals>
  298. <goal>java</goal>
  299. </goals>
  300. <configuration>
  301. <mainClass>org.apache.hadoop.yarn.state.VisualizeStateMachine</mainClass>
  302. <classpathScope>compile</classpathScope>
  303. <arguments>
  304. <argument>NodeManager</argument>
  305. <argument>org.apache.hadoop.yarn.server.nodemanager.containermanager.application.ApplicationImpl,
  306. org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl,
  307. org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalizedResource</argument>
  308. <argument>NodeManager.gv</argument>
  309. </arguments>
  310. </configuration>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. </plugins>
  315. </build>
  316. </profile>
  317. <profile>
  318. <id>native-win</id>
  319. <activation>
  320. <os>
  321. <family>Windows</family>
  322. </os>
  323. </activation>
  324. <build>
  325. <plugins>
  326. <plugin>
  327. <groupId>org.apache.maven.plugins</groupId>
  328. <artifactId>maven-surefire-plugin</artifactId>
  329. <configuration>
  330. <excludes>
  331. <exclude>org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.**</exclude>
  332. </excludes>
  333. </configuration>
  334. </plugin>
  335. </plugins>
  336. </build>
  337. </profile>
  338. </profiles>
  339. <build>
  340. <plugins>
  341. <plugin>
  342. <artifactId>maven-surefire-plugin</artifactId>
  343. <configuration>
  344. <systemPropertyVariables>
  345. <property>
  346. <name>container-executor.path</name>
  347. <value>${container-executor.path}</value>
  348. </property>
  349. <property>
  350. <name>application.submitter</name>
  351. <value>${application.submitter}</value>
  352. </property>
  353. <property>
  354. <name>yarn.log.dir</name>
  355. <value>${maven.project.build.directory}/logs</value>
  356. </property>
  357. </systemPropertyVariables>
  358. <excludes>
  359. <exclude>**/TestFSDownload.java</exclude>
  360. </excludes>
  361. </configuration>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.apache.rat</groupId>
  365. <artifactId>apache-rat-plugin</artifactId>
  366. <configuration>
  367. <excludes>
  368. <exclude>src/main/native/container-executor/impl/compat/fstatat.h</exclude>
  369. <exclude>src/main/native/container-executor/impl/compat/openat.h</exclude>
  370. <exclude>src/main/native/container-executor/impl/compat/unlinkat.h</exclude>
  371. <exclude>src/main/resources/TERMINAL/xterm/**/*</exclude>
  372. </excludes>
  373. </configuration>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.xolstice.maven.plugins</groupId>
  377. <artifactId>protobuf-maven-plugin</artifactId>
  378. <executions>
  379. <execution>
  380. <id>src-compile-protoc</id>
  381. <configuration>
  382. <skip>false</skip>
  383. <additionalProtoPathElements>
  384. <additionalProtoPathElement>
  385. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  386. </additionalProtoPathElement>
  387. <additionalProtoPathElement>
  388. ${basedir}/../../hadoop-yarn-api/src/main/proto
  389. </additionalProtoPathElement>
  390. </additionalProtoPathElements>
  391. </configuration>
  392. </execution>
  393. </executions>
  394. </plugin>
  395. <plugin>
  396. <groupId>com.google.code.maven-replacer-plugin</groupId>
  397. <artifactId>replacer</artifactId>
  398. <executions>
  399. <execution>
  400. <id>replace-generated-sources</id>
  401. <configuration>
  402. <skip>false</skip>
  403. </configuration>
  404. </execution>
  405. <execution>
  406. <id>replace-sources</id>
  407. <configuration>
  408. <skip>false</skip>
  409. </configuration>
  410. </execution>
  411. <execution>
  412. <id>replace-test-sources</id>
  413. <configuration>
  414. <skip>false</skip>
  415. </configuration>
  416. </execution>
  417. </executions>
  418. </plugin>
  419. </plugins>
  420. </build>
  421. </project>