pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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>2.0.4-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>org.apache.hadoop</groupId>
  24. <artifactId>hadoop-yarn-common</artifactId>
  25. <version>2.0.4-SNAPSHOT</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/dt-1.9.4/css/jui-dt.css</exclude>
  56. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css</exclude>
  57. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  58. </excludes>
  59. </configuration>
  60. </plugin>
  61. <plugin>
  62. <artifactId>maven-jar-plugin</artifactId>
  63. <executions>
  64. <execution>
  65. <goals>
  66. <goal>test-jar</goal>
  67. </goals>
  68. <phase>test-compile</phase>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <plugin>
  73. <artifactId>maven-antrun-plugin</artifactId>
  74. <executions>
  75. <execution>
  76. <id>create-protobuf-generated-sources-directory</id>
  77. <phase>initialize</phase>
  78. <configuration>
  79. <target>
  80. <mkdir dir="target/generated-sources/proto" />
  81. </target>
  82. </configuration>
  83. <goals>
  84. <goal>run</goal>
  85. </goals>
  86. </execution>
  87. <execution>
  88. <phase>pre-site</phase>
  89. <goals>
  90. <goal>run</goal>
  91. </goals>
  92. <configuration>
  93. <tasks>
  94. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  95. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  96. </tasks>
  97. </configuration>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.codehaus.mojo</groupId>
  103. <artifactId>exec-maven-plugin</artifactId>
  104. <executions>
  105. <execution>
  106. <id>generate-sources</id>
  107. <phase>generate-sources</phase>
  108. <configuration>
  109. <executable>protoc</executable>
  110. <arguments>
  111. <argument>-I../../../hadoop-common-project/hadoop-common/src/main/proto/</argument>
  112. <argument>-I../hadoop-yarn-api/src/main/proto/</argument>
  113. <argument>-Isrc/main/proto/</argument>
  114. <argument>--java_out=target/generated-sources/proto</argument>
  115. <argument>src/main/proto/yarnprototunnelrpc.proto</argument>
  116. </arguments>
  117. </configuration>
  118. <goals>
  119. <goal>exec</goal>
  120. </goals>
  121. </execution>
  122. <execution>
  123. <id>generate-version</id>
  124. <phase>generate-sources</phase>
  125. <configuration>
  126. <executable>scripts/saveVersion.sh</executable>
  127. <arguments>
  128. <argument>${project.version}</argument>
  129. <argument>${project.build.directory}</argument>
  130. </arguments>
  131. </configuration>
  132. <goals>
  133. <goal>exec</goal>
  134. </goals>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.codehaus.mojo</groupId>
  140. <artifactId>build-helper-maven-plugin</artifactId>
  141. <executions>
  142. <execution>
  143. <id>add-source</id>
  144. <phase>generate-sources</phase>
  145. <goals>
  146. <goal>add-source</goal>
  147. </goals>
  148. <configuration>
  149. <sources>
  150. <source>target/generated-sources/proto</source>
  151. <source>target/generated-sources/version</source>
  152. </sources>
  153. </configuration>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. </project>