pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. http://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.0.0-alpha3-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  24. <version>3.0.0-alpha3-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>javax.xml.bind</groupId>
  51. <artifactId>jaxb-api</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.codehaus.jettison</groupId>
  55. <artifactId>jettison</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>commons-lang</groupId>
  59. <artifactId>commons-lang</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>com.google.guava</groupId>
  83. <artifactId>guava</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>commons-logging</groupId>
  87. <artifactId>commons-logging</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>com.codahale.metrics</groupId>
  115. <artifactId>metrics-core</artifactId>
  116. </dependency>
  117. <!--
  118. junit must be before mockito-all on the classpath. mockito-all bundles its
  119. own copy of the hamcrest classes, but they don't match our junit version.
  120. -->
  121. <dependency>
  122. <groupId>junit</groupId>
  123. <artifactId>junit</artifactId>
  124. <scope>test</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.mockito</groupId>
  128. <artifactId>mockito-all</artifactId>
  129. <scope>test</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.google.inject</groupId>
  133. <artifactId>guice</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  137. <artifactId>jersey-test-framework-grizzly2</artifactId>
  138. <scope>test</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.sun.jersey</groupId>
  142. <artifactId>jersey-json</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.sun.jersey.contribs</groupId>
  146. <artifactId>jersey-guice</artifactId>
  147. </dependency>
  148. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  149. <dependency>
  150. <groupId>org.apache.hadoop</groupId>
  151. <artifactId>hadoop-yarn-common</artifactId>
  152. <type>test-jar</type>
  153. <scope>test</scope>
  154. </dependency>
  155. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  156. <dependency>
  157. <groupId>org.apache.hadoop</groupId>
  158. <artifactId>hadoop-yarn-server-common</artifactId>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.fusesource.leveldbjni</groupId>
  162. <artifactId>leveldbjni-all</artifactId>
  163. </dependency>
  164. </dependencies>
  165. <profiles>
  166. <profile>
  167. <id>native</id>
  168. <build>
  169. <plugins>
  170. <plugin>
  171. <groupId>org.apache.hadoop</groupId>
  172. <artifactId>hadoop-maven-plugins</artifactId>
  173. <executions>
  174. <execution>
  175. <id>cmake-compile</id>
  176. <phase>compile</phase>
  177. <goals><goal>cmake-compile</goal></goals>
  178. <configuration>
  179. <source>${basedir}/src</source>
  180. <vars>
  181. <HADOOP_CONF_DIR>${container-executor.conf.dir}</HADOOP_CONF_DIR>
  182. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  183. </vars>
  184. <env>
  185. <CFLAGS>${container-executor.additional_cflags}</CFLAGS>
  186. </env>
  187. </configuration>
  188. </execution>
  189. <execution>
  190. <id>test-container-executor</id>
  191. <goals><goal>cmake-test</goal></goals>
  192. <phase>test</phase>
  193. <configuration>
  194. <binary>${project.build.directory}/native/target/usr/local/bin/test-container-executor</binary>
  195. <timeout>300</timeout>
  196. <results>${project.build.directory}/native-results</results>
  197. </configuration>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. </plugins>
  202. </build>
  203. <activation>
  204. <activeByDefault>false</activeByDefault>
  205. </activation>
  206. </profile>
  207. <profile>
  208. <id>visualize</id>
  209. <activation>
  210. <activeByDefault>false</activeByDefault>
  211. </activation>
  212. <build>
  213. <plugins>
  214. <plugin>
  215. <groupId>org.codehaus.mojo</groupId>
  216. <artifactId>exec-maven-plugin</artifactId>
  217. <executions>
  218. <execution>
  219. <phase>compile</phase>
  220. <goals>
  221. <goal>java</goal>
  222. </goals>
  223. <configuration>
  224. <mainClass>org.apache.hadoop.yarn.state.VisualizeStateMachine</mainClass>
  225. <classpathScope>compile</classpathScope>
  226. <arguments>
  227. <argument>NodeManager</argument>
  228. <argument>org.apache.hadoop.yarn.server.nodemanager.containermanager.application.ApplicationImpl,
  229. org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl,
  230. org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalizedResource</argument>
  231. <argument>NodeManager.gv</argument>
  232. </arguments>
  233. </configuration>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. </plugins>
  238. </build>
  239. </profile>
  240. </profiles>
  241. <build>
  242. <plugins>
  243. <plugin>
  244. <artifactId>maven-surefire-plugin</artifactId>
  245. <configuration>
  246. <systemPropertyVariables>
  247. <property>
  248. <name>container-executor.path</name>
  249. <value>${container-executor.path}</value>
  250. </property>
  251. <property>
  252. <name>application.submitter</name>
  253. <value>${application.submitter}</value>
  254. </property>
  255. <property>
  256. <name>yarn.log.dir</name>
  257. <value>${maven.project.build.directory}/logs</value>
  258. </property>
  259. </systemPropertyVariables>
  260. <excludes>
  261. <exclude>**/TestFSDownload.java</exclude>
  262. </excludes>
  263. </configuration>
  264. </plugin>
  265. <plugin>
  266. <groupId>org.apache.rat</groupId>
  267. <artifactId>apache-rat-plugin</artifactId>
  268. <configuration>
  269. <excludes>
  270. <exclude>src/main/native/container-executor/impl/compat/fstatat.h</exclude>
  271. <exclude>src/main/native/container-executor/impl/compat/openat.h</exclude>
  272. <exclude>src/main/native/container-executor/impl/compat/unlinkat.h</exclude>
  273. </excludes>
  274. </configuration>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.apache.hadoop</groupId>
  278. <artifactId>hadoop-maven-plugins</artifactId>
  279. <executions>
  280. <execution>
  281. <id>compile-protoc</id>
  282. <goals>
  283. <goal>protoc</goal>
  284. </goals>
  285. <configuration>
  286. <protocVersion>${protobuf.version}</protocVersion>
  287. <protocCommand>${protoc.path}</protocCommand>
  288. <imports>
  289. <param>${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  290. <param>${basedir}/../../hadoop-yarn-api/src/main/proto</param>
  291. <param>${basedir}/src/main/proto</param>
  292. </imports>
  293. <source>
  294. <directory>${basedir}/src/main/proto</directory>
  295. <includes>
  296. <include>yarn_server_nodemanager_recovery.proto</include>
  297. <include>yarn_server_nodemanager_service_protos.proto</include>
  298. <include>LocalizationProtocol.proto</include>
  299. </includes>
  300. </source>
  301. </configuration>
  302. </execution>
  303. </executions>
  304. </plugin>
  305. </plugins>
  306. </build>
  307. </project>