pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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</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-common</artifactId>
  25. <version>3.0.0-alpha2-SNAPSHOT</version>
  26. <name>Apache Hadoop YARN Common</name>
  27. <properties>
  28. <!-- Needed for generating FindBugs warnings using parent pom -->
  29. <yarn.basedir>${project.parent.basedir}</yarn.basedir>
  30. <should.run.jdiff>true</should.run.jdiff>
  31. <dev-support.relative.dir>../dev-support</dev-support.relative.dir>
  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-api</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-auth</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>javax.xml.bind</groupId>
  51. <artifactId>jaxb-api</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.commons</groupId>
  55. <artifactId>commons-compress</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>servlet-api</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>commons-codec</groupId>
  67. <artifactId>commons-codec</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.mortbay.jetty</groupId>
  71. <artifactId>jetty-util</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.sun.jersey</groupId>
  75. <artifactId>jersey-core</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.sun.jersey</groupId>
  79. <artifactId>jersey-client</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.codehaus.jackson</groupId>
  83. <artifactId>jackson-core-asl</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.codehaus.jackson</groupId>
  87. <artifactId>jackson-mapper-asl</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.codehaus.jackson</groupId>
  91. <artifactId>jackson-jaxrs</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.codehaus.jackson</groupId>
  95. <artifactId>jackson-xc</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.google.guava</groupId>
  99. <artifactId>guava</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>commons-logging</groupId>
  103. <artifactId>commons-logging</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>commons-cli</groupId>
  107. <artifactId>commons-cli</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.slf4j</groupId>
  111. <artifactId>slf4j-api</artifactId>
  112. </dependency>
  113. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  114. <dependency>
  115. <groupId>org.apache.hadoop</groupId>
  116. <artifactId>hadoop-annotations</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.mockito</groupId>
  120. <artifactId>mockito-all</artifactId>
  121. <scope>test</scope>
  122. </dependency>
  123. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  124. <dependency>
  125. <groupId>org.apache.hadoop</groupId>
  126. <artifactId>hadoop-common</artifactId>
  127. <type>test-jar</type>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.google.inject.extensions</groupId>
  132. <artifactId>guice-servlet</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.google.protobuf</groupId>
  136. <artifactId>protobuf-java</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>junit</groupId>
  140. <artifactId>junit</artifactId>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.bouncycastle</groupId>
  145. <artifactId>bcprov-jdk16</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  150. <artifactId>jersey-test-framework-grizzly2</artifactId>
  151. <scope>test</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>commons-io</groupId>
  155. <artifactId>commons-io</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.google.inject</groupId>
  159. <artifactId>guice</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.sun.jersey</groupId>
  163. <artifactId>jersey-server</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.sun.jersey</groupId>
  167. <artifactId>jersey-json</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.sun.jersey.contribs</groupId>
  171. <artifactId>jersey-guice</artifactId>
  172. </dependency>
  173. <dependency>
  174. <groupId>log4j</groupId>
  175. <artifactId>log4j</artifactId>
  176. </dependency>
  177. </dependencies>
  178. <build>
  179. <!--
  180. Include all files in src/main/resources. By default, do not apply property
  181. substitution (filtering=false), but do apply property substitution to
  182. yarn-version-info.properties (filtering=true). This will substitute the
  183. version information correctly, but prevent Maven from altering other files
  184. like yarn-default.xml.
  185. -->
  186. <resources>
  187. <resource>
  188. <directory>${basedir}/src/main/resources</directory>
  189. <excludes>
  190. <exclude>yarn-version-info.properties</exclude>
  191. </excludes>
  192. <filtering>false</filtering>
  193. </resource>
  194. <resource>
  195. <directory>${basedir}/src/main/resources</directory>
  196. <includes>
  197. <include>yarn-version-info.properties</include>
  198. </includes>
  199. <filtering>true</filtering>
  200. </resource>
  201. </resources>
  202. <plugins>
  203. <plugin>
  204. <groupId>org.apache.rat</groupId>
  205. <artifactId>apache-rat-plugin</artifactId>
  206. <configuration>
  207. <excludes>
  208. <exclude>src/main/resources/webapps/mapreduce/.keep</exclude>
  209. <exclude>src/main/resources/webapps/jobhistory/.keep</exclude>
  210. <exclude>src/main/resources/webapps/yarn/.keep</exclude>
  211. <exclude>src/main/resources/webapps/applicationhistory/.keep</exclude>
  212. <exclude>src/main/resources/webapps/timeline/.keep</exclude>
  213. <exclude>src/main/resources/webapps/cluster/.keep</exclude>
  214. <exclude>src/main/resources/webapps/test/.keep</exclude>
  215. <exclude>src/main/resources/webapps/proxy/.keep</exclude>
  216. <exclude>src/main/resources/webapps/node/.keep</exclude>
  217. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/jui-dt.css</exclude>
  218. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css</exclude>
  219. <exclude>src/main/resources/webapps/static/dt-1.9.4/images/Sorting icons.psd</exclude>
  220. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  221. <exclude>src/test/resources/application_1440536969523_0001.har/_index</exclude>
  222. <exclude>src/test/resources/application_1440536969523_0001.har/part-0</exclude>
  223. <exclude>src/test/resources/application_1440536969523_0001.har/_masterindex</exclude>
  224. <exclude>src/test/resources/application_1440536969523_0001.har/_SUCCESS</exclude>
  225. </excludes>
  226. </configuration>
  227. </plugin>
  228. <plugin>
  229. <groupId>org.apache.hadoop</groupId>
  230. <artifactId>hadoop-maven-plugins</artifactId>
  231. <executions>
  232. <execution>
  233. <id>version-info</id>
  234. <phase>generate-resources</phase>
  235. <goals>
  236. <goal>version-info</goal>
  237. </goals>
  238. <configuration>
  239. <source>
  240. <directory>${basedir}/src/main</directory>
  241. <includes>
  242. <include>java/**/*.java</include>
  243. <include>proto/**/*.proto</include>
  244. </includes>
  245. </source>
  246. </configuration>
  247. </execution>
  248. <execution>
  249. <id>compile-protoc</id>
  250. <phase>generate-sources</phase>
  251. <goals>
  252. <goal>protoc</goal>
  253. </goals>
  254. <configuration>
  255. <protocVersion>${protobuf.version}</protocVersion>
  256. <protocCommand>${protoc.path}</protocCommand>
  257. <imports>
  258. <param>${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  259. <param>${basedir}/../hadoop-yarn-api/src/main/proto</param>
  260. <param>${basedir}/src/main/proto</param>
  261. </imports>
  262. <source>
  263. <directory>${basedir}/src/main/proto</directory>
  264. <includes>
  265. <include>yarn_security_token.proto</include>
  266. </includes>
  267. </source>
  268. <output>${project.build.directory}/generated-sources/java</output>
  269. </configuration>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. <plugin>
  274. <artifactId>maven-jar-plugin</artifactId>
  275. <executions>
  276. <execution>
  277. <goals>
  278. <goal>test-jar</goal>
  279. </goals>
  280. <phase>test-compile</phase>
  281. </execution>
  282. </executions>
  283. </plugin>
  284. <plugin>
  285. <artifactId>maven-antrun-plugin</artifactId>
  286. <executions>
  287. <execution>
  288. <phase>pre-site</phase>
  289. <goals>
  290. <goal>run</goal>
  291. </goals>
  292. <configuration>
  293. <tasks>
  294. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  295. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  296. </tasks>
  297. </configuration>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. <plugin>
  302. <artifactId>maven-clean-plugin</artifactId>
  303. <configuration>
  304. <filesets>
  305. <fileset>
  306. <directory>src/site/resources</directory>
  307. <includes>
  308. <include>configuration.xsl</include>
  309. <include>yarn-default.xml</include>
  310. </includes>
  311. <followSymlinks>false</followSymlinks>
  312. </fileset>
  313. </filesets>
  314. </configuration>
  315. </plugin>
  316. </plugins>
  317. </build>
  318. </project>