pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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-alpha2-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>org.apache.hadoop</groupId>
  24. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  25. <version>3.0.0-alpha2-SNAPSHOT</version>
  26. <name>Apache Hadoop YARN NodeManager</name>
  27. <properties>
  28. <!-- Basedir eeded for generating FindBugs warnings using parent pom -->
  29. <yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
  30. <container-executor.conf.dir>../etc/hadoop</container-executor.conf.dir>
  31. <container-executor.additional_cflags></container-executor.additional_cflags>
  32. </properties>
  33. <dependencies>
  34. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  35. <dependency>
  36. <groupId>org.apache.hadoop</groupId>
  37. <artifactId>hadoop-common</artifactId>
  38. <scope>provided</scope>
  39. </dependency>
  40. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-yarn-common</artifactId>
  44. </dependency>
  45. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-yarn-api</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>javax.xml.bind</groupId>
  52. <artifactId>jaxb-api</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.codehaus.jettison</groupId>
  56. <artifactId>jettison</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>commons-lang</groupId>
  60. <artifactId>commons-lang</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>javax.servlet</groupId>
  64. <artifactId>servlet-api</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>commons-codec</groupId>
  68. <artifactId>commons-codec</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.sun.jersey</groupId>
  72. <artifactId>jersey-core</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.sun.jersey</groupId>
  76. <artifactId>jersey-client</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.mortbay.jetty</groupId>
  80. <artifactId>jetty-util</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.google.guava</groupId>
  84. <artifactId>guava</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>commons-logging</groupId>
  88. <artifactId>commons-logging</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.slf4j</groupId>
  92. <artifactId>slf4j-api</artifactId>
  93. </dependency>
  94. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  95. <dependency>
  96. <groupId>org.apache.hadoop</groupId>
  97. <artifactId>hadoop-annotations</artifactId>
  98. </dependency>
  99. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  100. <dependency>
  101. <groupId>org.apache.hadoop</groupId>
  102. <artifactId>hadoop-common</artifactId>
  103. <type>test-jar</type>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.google.inject.extensions</groupId>
  108. <artifactId>guice-servlet</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.google.protobuf</groupId>
  112. <artifactId>protobuf-java</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.codahale.metrics</groupId>
  116. <artifactId>metrics-core</artifactId>
  117. </dependency>
  118. <!--
  119. junit must be before mockito-all on the classpath. mockito-all bundles its
  120. own copy of the hamcrest classes, but they don't match our junit version.
  121. -->
  122. <dependency>
  123. <groupId>junit</groupId>
  124. <artifactId>junit</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.mockito</groupId>
  129. <artifactId>mockito-all</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.google.inject</groupId>
  134. <artifactId>guice</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  138. <artifactId>jersey-test-framework-grizzly2</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.sun.jersey</groupId>
  143. <artifactId>jersey-json</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.sun.jersey.contribs</groupId>
  147. <artifactId>jersey-guice</artifactId>
  148. </dependency>
  149. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  150. <dependency>
  151. <groupId>org.apache.hadoop</groupId>
  152. <artifactId>hadoop-yarn-common</artifactId>
  153. <type>test-jar</type>
  154. <scope>test</scope>
  155. </dependency>
  156. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  157. <dependency>
  158. <groupId>org.apache.hadoop</groupId>
  159. <artifactId>hadoop-yarn-server-common</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.fusesource.leveldbjni</groupId>
  163. <artifactId>leveldbjni-all</artifactId>
  164. </dependency>
  165. </dependencies>
  166. <profiles>
  167. <profile>
  168. <id>native</id>
  169. <build>
  170. <plugins>
  171. <plugin>
  172. <groupId>org.apache.hadoop</groupId>
  173. <artifactId>hadoop-maven-plugins</artifactId>
  174. <executions>
  175. <execution>
  176. <id>cmake-compile</id>
  177. <phase>compile</phase>
  178. <goals><goal>cmake-compile</goal></goals>
  179. <configuration>
  180. <source>${basedir}/src</source>
  181. <vars>
  182. <HADOOP_CONF_DIR>${container-executor.conf.dir}</HADOOP_CONF_DIR>
  183. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  184. </vars>
  185. <env>
  186. <CFLAGS>${container-executor.additional_cflags}</CFLAGS>
  187. </env>
  188. </configuration>
  189. </execution>
  190. <execution>
  191. <id>test-container-executor</id>
  192. <goals><goal>cmake-test</goal></goals>
  193. <phase>test</phase>
  194. <configuration>
  195. <binary>${project.build.directory}/native/target/usr/local/bin/test-container-executor</binary>
  196. <timeout>300</timeout>
  197. <results>${project.build.directory}/native-results</results>
  198. </configuration>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. <activation>
  205. <activeByDefault>false</activeByDefault>
  206. </activation>
  207. </profile>
  208. <profile>
  209. <id>visualize</id>
  210. <activation>
  211. <activeByDefault>false</activeByDefault>
  212. </activation>
  213. <build>
  214. <plugins>
  215. <plugin>
  216. <groupId>org.codehaus.mojo</groupId>
  217. <artifactId>exec-maven-plugin</artifactId>
  218. <executions>
  219. <execution>
  220. <phase>compile</phase>
  221. <goals>
  222. <goal>java</goal>
  223. </goals>
  224. <configuration>
  225. <mainClass>org.apache.hadoop.yarn.state.VisualizeStateMachine</mainClass>
  226. <classpathScope>compile</classpathScope>
  227. <arguments>
  228. <argument>NodeManager</argument>
  229. <argument>org.apache.hadoop.yarn.server.nodemanager.containermanager.application.ApplicationImpl,
  230. org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl,
  231. org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalizedResource</argument>
  232. <argument>NodeManager.gv</argument>
  233. </arguments>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. </plugins>
  239. </build>
  240. </profile>
  241. </profiles>
  242. <build>
  243. <plugins>
  244. <plugin>
  245. <artifactId>maven-surefire-plugin</artifactId>
  246. <configuration>
  247. <systemPropertyVariables>
  248. <property>
  249. <name>container-executor.path</name>
  250. <value>${container-executor.path}</value>
  251. </property>
  252. <property>
  253. <name>application.submitter</name>
  254. <value>${application.submitter}</value>
  255. </property>
  256. <property>
  257. <name>yarn.log.dir</name>
  258. <value>${maven.project.build.directory}/logs</value>
  259. </property>
  260. </systemPropertyVariables>
  261. <excludes>
  262. <exclude>**/TestFSDownload.java</exclude>
  263. </excludes>
  264. </configuration>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.apache.rat</groupId>
  268. <artifactId>apache-rat-plugin</artifactId>
  269. <configuration>
  270. <excludes>
  271. <exclude>src/main/native/container-executor/impl/compat/fstatat.h</exclude>
  272. <exclude>src/main/native/container-executor/impl/compat/openat.h</exclude>
  273. <exclude>src/main/native/container-executor/impl/compat/unlinkat.h</exclude>
  274. </excludes>
  275. </configuration>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.hadoop</groupId>
  279. <artifactId>hadoop-maven-plugins</artifactId>
  280. <executions>
  281. <execution>
  282. <id>compile-protoc</id>
  283. <phase>generate-sources</phase>
  284. <goals>
  285. <goal>protoc</goal>
  286. </goals>
  287. <configuration>
  288. <protocVersion>${protobuf.version}</protocVersion>
  289. <protocCommand>${protoc.path}</protocCommand>
  290. <imports>
  291. <param>${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  292. <param>${basedir}/../../hadoop-yarn-api/src/main/proto</param>
  293. <param>${basedir}/src/main/proto</param>
  294. </imports>
  295. <source>
  296. <directory>${basedir}/src/main/proto</directory>
  297. <includes>
  298. <include>yarn_server_nodemanager_recovery.proto</include>
  299. <include>yarn_server_nodemanager_service_protos.proto</include>
  300. <include>LocalizationProtocol.proto</include>
  301. </includes>
  302. </source>
  303. <output>${project.build.directory}/generated-sources/java</output>
  304. </configuration>
  305. </execution>
  306. </executions>
  307. </plugin>
  308. </plugins>
  309. </build>
  310. </project>