pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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>0.23.6</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>org.apache.hadoop</groupId>
  24. <artifactId>hadoop-yarn-common</artifactId>
  25. <version>0.23.6</version>
  26. <name>hadoop-yarn-common</name>
  27. <properties>
  28. <!-- Needed for generating FindBugs warnings using parent pom -->
  29. <yarn.basedir>${project.parent.basedir}</yarn.basedir>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>log4j</groupId>
  34. <artifactId>log4j</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-yarn-api</artifactId>
  39. </dependency>
  40. </dependencies>
  41. <build>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.apache.rat</groupId>
  45. <artifactId>apache-rat-plugin</artifactId>
  46. <configuration>
  47. <excludes>
  48. <exclude>src/main/resources/webapps/mapreduce/.keep</exclude>
  49. <exclude>src/main/resources/webapps/jobhistory/.keep</exclude>
  50. <exclude>src/main/resources/webapps/yarn/.keep</exclude>
  51. <exclude>src/main/resources/webapps/cluster/.keep</exclude>
  52. <exclude>src/main/resources/webapps/test/.keep</exclude>
  53. <exclude>src/main/resources/webapps/proxy/.keep</exclude>
  54. <exclude>src/main/resources/webapps/node/.keep</exclude>
  55. <exclude>src/main/resources/webapps/static/jquery-ui-1.9.1.custom.min.js</exclude>
  56. <exclude>src/main/resources/webapps/static/jquery-1.8.2.min.js</exclude>
  57. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/jui-dt.css</exclude>
  58. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css</exclude>
  59. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  60. </excludes>
  61. </configuration>
  62. </plugin>
  63. <plugin>
  64. <artifactId>maven-jar-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <goals>
  68. <goal>test-jar</goal>
  69. </goals>
  70. <phase>test-compile</phase>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <artifactId>maven-antrun-plugin</artifactId>
  76. <executions>
  77. <execution>
  78. <id>create-protobuf-generated-sources-directory</id>
  79. <phase>initialize</phase>
  80. <configuration>
  81. <target>
  82. <mkdir dir="target/generated-sources/proto" />
  83. </target>
  84. </configuration>
  85. <goals>
  86. <goal>run</goal>
  87. </goals>
  88. </execution>
  89. <execution>
  90. <phase>pre-site</phase>
  91. <goals>
  92. <goal>run</goal>
  93. </goals>
  94. <configuration>
  95. <tasks>
  96. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  97. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  98. </tasks>
  99. </configuration>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.codehaus.mojo</groupId>
  105. <artifactId>exec-maven-plugin</artifactId>
  106. <executions>
  107. <execution>
  108. <id>generate-sources</id>
  109. <phase>generate-sources</phase>
  110. <configuration>
  111. <executable>protoc</executable>
  112. <arguments>
  113. <argument>-I../hadoop-yarn-api/src/main/proto/</argument>
  114. <argument>-Isrc/main/proto/</argument>
  115. <argument>--java_out=target/generated-sources/proto</argument>
  116. <argument>src/main/proto/yarnprototunnelrpc.proto</argument>
  117. </arguments>
  118. </configuration>
  119. <goals>
  120. <goal>exec</goal>
  121. </goals>
  122. </execution>
  123. <execution>
  124. <id>generate-version</id>
  125. <phase>generate-sources</phase>
  126. <configuration>
  127. <executable>scripts/saveVersion.sh</executable>
  128. <arguments>
  129. <argument>${project.version}</argument>
  130. <argument>${project.build.directory}</argument>
  131. </arguments>
  132. </configuration>
  133. <goals>
  134. <goal>exec</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.codehaus.mojo</groupId>
  141. <artifactId>build-helper-maven-plugin</artifactId>
  142. <executions>
  143. <execution>
  144. <id>add-source</id>
  145. <phase>generate-sources</phase>
  146. <goals>
  147. <goal>add-source</goal>
  148. </goals>
  149. <configuration>
  150. <sources>
  151. <source>target/generated-sources/proto</source>
  152. <source>target/generated-sources/version</source>
  153. </sources>
  154. </configuration>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. </project>