pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-yarn-slider</artifactId>
  20. <version>3.0.0-alpha2-SNAPSHOT</version>
  21. </parent>
  22. <groupId>org.apache.hadoop</groupId>
  23. <artifactId>hadoop-yarn-slider-core</artifactId>
  24. <packaging>jar</packaging>
  25. <name>Apache Hadoop YARN Slider Core</name>
  26. <build>
  27. <!-- resources are filtered for dynamic updates. This gets build info in-->
  28. <resources>
  29. <resource>
  30. <directory>src/main/resources</directory>
  31. <filtering>true</filtering>
  32. </resource>
  33. </resources>
  34. <plugins>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-jar-plugin</artifactId>
  38. <executions>
  39. <execution>
  40. <goals>
  41. <goal>test-jar</goal>
  42. </goals>
  43. </execution>
  44. </executions>
  45. </plugin>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-surefire-plugin</artifactId>
  49. <configuration>
  50. <environmentVariables>
  51. <JAVA_HOME>${java.home}</JAVA_HOME>
  52. </environmentVariables>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.avro</groupId>
  57. <artifactId>avro-maven-plugin</artifactId>
  58. <version>${avro.version}</version>
  59. <executions>
  60. <execution>
  61. <phase>generate-sources</phase>
  62. <goals>
  63. <goal>schema</goal>
  64. </goals>
  65. <configuration>
  66. <sourceDirectory>${project.basedir}/src/main/avro/
  67. </sourceDirectory>
  68. <outputDirectory>${project.build.directory}/generated-sources/java
  69. </outputDirectory>
  70. </configuration>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. </plugins>
  75. </build>
  76. <dependencies>
  77. <dependency>
  78. <groupId>com.beust</groupId>
  79. <artifactId>jcommander</artifactId>
  80. <version>1.30</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.slf4j</groupId>
  84. <artifactId>slf4j-api</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>log4j</groupId>
  88. <artifactId>log4j</artifactId>
  89. <scope>runtime</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.google.guava</groupId>
  93. <artifactId>guava</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.codehaus.jackson</groupId>
  97. <artifactId>jackson-core-asl</artifactId>
  98. <scope>compile</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.codehaus.jackson</groupId>
  102. <artifactId>jackson-jaxrs</artifactId>
  103. <scope>compile</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.codehaus.jackson</groupId>
  107. <artifactId>jackson-mapper-asl</artifactId>
  108. <scope>compile</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.codehaus.jackson</groupId>
  112. <artifactId>jackson-xc</artifactId>
  113. <scope>compile</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.hadoop</groupId>
  117. <artifactId>hadoop-common</artifactId>
  118. <type>test-jar</type>
  119. <scope>test</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.hadoop</groupId>
  123. <artifactId>hadoop-hdfs</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-yarn-client</artifactId>
  128. <scope>compile</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.hadoop</groupId>
  132. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  133. <scope>compile</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.hadoop</groupId>
  137. <artifactId>hadoop-yarn-registry</artifactId>
  138. <scope>compile</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>junit</groupId>
  142. <artifactId>junit</artifactId>
  143. <scope>test</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.google.protobuf</groupId>
  147. <artifactId>protobuf-java</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.apache.avro</groupId>
  151. <artifactId>avro</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.commons</groupId>
  155. <artifactId>commons-compress</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>commons-digester</groupId>
  159. <artifactId>commons-digester</artifactId>
  160. <version>1.8</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>commons-io</groupId>
  164. <artifactId>commons-io</artifactId>
  165. </dependency>
  166. <dependency>
  167. <groupId>commons-lang</groupId>
  168. <artifactId>commons-lang</artifactId>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-logging</groupId>
  172. <artifactId>commons-logging</artifactId>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.codahale.metrics</groupId>
  176. <artifactId>metrics-core</artifactId>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.codahale.metrics</groupId>
  180. <artifactId>metrics-servlets</artifactId>
  181. <version>3.0.1</version>
  182. </dependency>
  183. <!-- ======================================================== -->
  184. <!-- service registry -->
  185. <!-- ======================================================== -->
  186. <dependency>
  187. <groupId>org.apache.zookeeper</groupId>
  188. <artifactId>zookeeper</artifactId>
  189. </dependency>
  190. <!-- ======================================================== -->
  191. <!-- Jersey and webapp support -->
  192. <!-- ======================================================== -->
  193. <dependency>
  194. <groupId>javax.servlet</groupId>
  195. <artifactId>servlet-api</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>javax.xml.bind</groupId>
  199. <artifactId>jaxb-api</artifactId>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.sun.jersey</groupId>
  203. <artifactId>jersey-client</artifactId>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.sun.jersey</groupId>
  207. <artifactId>jersey-json</artifactId>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.sun.jersey</groupId>
  211. <artifactId>jersey-server</artifactId>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.google.inject</groupId>
  215. <artifactId>guice</artifactId>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.google.code.gson</groupId>
  219. <artifactId>gson</artifactId>
  220. </dependency>
  221. <dependency>
  222. <groupId>com.google.inject.extensions</groupId>
  223. <artifactId>guice-servlet</artifactId>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.sun.jersey.contribs</groupId>
  227. <artifactId>jersey-guice</artifactId>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.mockito</groupId>
  231. <artifactId>mockito-all</artifactId>
  232. <scope>test</scope>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.easymock</groupId>
  236. <artifactId>easymock</artifactId>
  237. <version>3.1</version>
  238. <scope>test</scope>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.powermock</groupId>
  242. <artifactId>powermock-api-easymock</artifactId>
  243. <version>1.5</version>
  244. <scope>test</scope>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.mortbay.jetty</groupId>
  248. <artifactId>jetty</artifactId>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.mortbay.jetty</groupId>
  252. <artifactId>jetty-util</artifactId>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.mortbay.jetty</groupId>
  256. <artifactId>jetty-sslengine</artifactId>
  257. </dependency>
  258. <dependency>
  259. <groupId>javax.servlet.jsp</groupId>
  260. <artifactId>jsp-api</artifactId>
  261. <scope>runtime</scope>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.codehaus.jettison</groupId>
  265. <artifactId>jettison</artifactId>
  266. </dependency>
  267. <dependency>
  268. <groupId>org.mortbay.jetty</groupId>
  269. <artifactId>jetty-sslengine</artifactId>
  270. <version>6.1.26</version>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.yaml</groupId>
  274. <artifactId>snakeyaml</artifactId>
  275. <version>1.16</version>
  276. <scope>compile</scope>
  277. </dependency>
  278. </dependencies>
  279. <profiles>
  280. <profile>
  281. <id>dist</id>
  282. <activation>
  283. <activeByDefault>false</activeByDefault>
  284. </activation>
  285. <build>
  286. <plugins>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-assembly-plugin</artifactId>
  290. <dependencies>
  291. <dependency>
  292. <groupId>org.apache.hadoop</groupId>
  293. <artifactId>hadoop-assemblies</artifactId>
  294. <version>${project.version}</version>
  295. </dependency>
  296. </dependencies>
  297. <executions>
  298. <execution>
  299. <id>dist</id>
  300. <phase>prepare-package</phase>
  301. <goals>
  302. <goal>single</goal>
  303. </goals>
  304. <configuration>
  305. <appendAssemblyId>false</appendAssemblyId>
  306. <attach>false</attach>
  307. <finalName>${project.artifactId}-${project.version}</finalName>
  308. <descriptorRefs>
  309. <descriptorRef>hadoop-yarn-slider-dist</descriptorRef>
  310. </descriptorRefs>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. </plugins>
  316. </build>
  317. </profile>
  318. <profile>
  319. <id>compile-protobuf</id>
  320. <build>
  321. <plugins>
  322. <plugin>
  323. <groupId>org.apache.hadoop</groupId>
  324. <artifactId>hadoop-maven-plugins</artifactId>
  325. <executions>
  326. <execution>
  327. <id>compile-protoc</id>
  328. <phase>generate-sources</phase>
  329. <goals>
  330. <goal>protoc</goal>
  331. </goals>
  332. <configuration>
  333. <protocVersion>${protobuf.version}</protocVersion>
  334. <protocCommand>protoc</protocCommand>
  335. <imports>
  336. <param>${basedir}/src/main/proto</param>
  337. </imports>
  338. <source>
  339. <directory>${basedir}/src/main/proto</directory>
  340. <includes>
  341. <include>SliderClusterMessages.proto</include>
  342. <include>SliderClusterProtocol.proto</include>
  343. </includes>
  344. </source>
  345. <output>${basedir}/src/main/java</output>
  346. </configuration>
  347. </execution>
  348. </executions>
  349. </plugin>
  350. </plugins>
  351. </build>
  352. </profile>
  353. <profile>
  354. <id>rat</id>
  355. <build>
  356. <plugins>
  357. <plugin>
  358. <groupId>org.apache.rat</groupId>
  359. <artifactId>apache-rat-plugin</artifactId>
  360. <executions>
  361. <execution>
  362. <id>check-licenses</id>
  363. <goals>
  364. <goal>check</goal>
  365. </goals>
  366. </execution>
  367. </executions>
  368. <configuration>
  369. <excludes>
  370. <exclude>**/*.json</exclude>
  371. <exclude>src/test/python/agent.ini</exclude>
  372. <exclude>src/test/python/version</exclude>
  373. <exclude>**/THIRD-PARTY.properties</exclude>
  374. <exclude>src/main/resources/webapps/slideram/.keep</exclude>
  375. <exclude>src/main/resources/webapps/slideragent/.keep</exclude>
  376. <exclude>src/main/resources/webapps/static/yarn.dt.plugins.js</exclude>
  377. <!-- jQuery DataTables files (BSD license) -->
  378. <exclude>src/main/resources/webapps/static/dt-1.9.4/**</exclude>
  379. <!-- jQuery (MIT license) -->
  380. <exclude>src/main/resources/webapps/static/jquery/jquery-1.8.2.min.js</exclude>
  381. <!-- jQuery UI (MIT license) -->
  382. <exclude>src/main/resources/webapps/static/jquery/jquery-ui-1.9.1.custom.min.js</exclude>
  383. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  384. <!-- jQuery jsTree (MIT license) -->
  385. <exclude>src/main/resources/webapps/static/jt/jquery.jstree.js</exclude>
  386. <!-- protobuf generated classes -->
  387. <exclude>src/main/java/org/apache/slider/api/proto/Messages.java</exclude>
  388. <exclude>src/main/java/org/apache/slider/api/proto/SliderClusterAPI.java</exclude>
  389. <exclude>src/test/app_packages/test_am_config/resources/test.template</exclude>
  390. <exclude>src/test/app_packages/test_am_config/test_archive/testfile</exclude>
  391. </excludes>
  392. </configuration>
  393. </plugin>
  394. </plugins>
  395. </build>
  396. </profile>
  397. </profiles>
  398. </project>