pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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-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-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. <!--
  43. Include all files in src/main/resources. By default, do not apply property
  44. substitution (filtering=false), but do apply property substitution to
  45. yarn-version-info.properties (filtering=true). This will substitute the
  46. version information correctly, but prevent Maven from altering other files
  47. like yarn-default.xml.
  48. -->
  49. <resources>
  50. <resource>
  51. <directory>${basedir}/src/main/resources</directory>
  52. <excludes>
  53. <exclude>yarn-version-info.properties</exclude>
  54. </excludes>
  55. <filtering>false</filtering>
  56. </resource>
  57. <resource>
  58. <directory>${basedir}/src/main/resources</directory>
  59. <includes>
  60. <include>yarn-version-info.properties</include>
  61. </includes>
  62. <filtering>true</filtering>
  63. </resource>
  64. </resources>
  65. <plugins>
  66. <plugin>
  67. <groupId>org.apache.rat</groupId>
  68. <artifactId>apache-rat-plugin</artifactId>
  69. <configuration>
  70. <excludes>
  71. <exclude>src/main/resources/webapps/mapreduce/.keep</exclude>
  72. <exclude>src/main/resources/webapps/jobhistory/.keep</exclude>
  73. <exclude>src/main/resources/webapps/yarn/.keep</exclude>
  74. <exclude>src/main/resources/webapps/cluster/.keep</exclude>
  75. <exclude>src/main/resources/webapps/test/.keep</exclude>
  76. <exclude>src/main/resources/webapps/proxy/.keep</exclude>
  77. <exclude>src/main/resources/webapps/node/.keep</exclude>
  78. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/jui-dt.css</exclude>
  79. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css</exclude>
  80. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  81. </excludes>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.hadoop</groupId>
  86. <artifactId>hadoop-maven-plugins</artifactId>
  87. <executions>
  88. <execution>
  89. <id>version-info</id>
  90. <phase>generate-resources</phase>
  91. <goals>
  92. <goal>version-info</goal>
  93. </goals>
  94. <configuration>
  95. <source>
  96. <directory>${basedir}/src/main</directory>
  97. <includes>
  98. <include>java/**/*.java</include>
  99. <include>proto/**/*.proto</include>
  100. </includes>
  101. </source>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <artifactId>maven-jar-plugin</artifactId>
  108. <executions>
  109. <execution>
  110. <goals>
  111. <goal>test-jar</goal>
  112. </goals>
  113. <phase>test-compile</phase>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. <plugin>
  118. <artifactId>maven-antrun-plugin</artifactId>
  119. <executions>
  120. <execution>
  121. <phase>pre-site</phase>
  122. <goals>
  123. <goal>run</goal>
  124. </goals>
  125. <configuration>
  126. <tasks>
  127. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  128. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  129. </tasks>
  130. </configuration>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>