pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0"?>
  2. <project>
  3. <parent>
  4. <artifactId>hadoop-yarn</artifactId>
  5. <groupId>org.apache.hadoop</groupId>
  6. <version>${yarn.version}</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <groupId>org.apache.hadoop</groupId>
  10. <artifactId>hadoop-yarn-common</artifactId>
  11. <name>hadoop-yarn-common</name>
  12. <properties>
  13. <install.file>${project.artifact.file}</install.file>
  14. <yarn.basedir>${project.parent.basedir}</yarn.basedir>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>log4j</groupId>
  19. <artifactId>log4j</artifactId>
  20. <version>1.2.12</version>
  21. <exclusions>
  22. <exclusion>
  23. <groupId>com.sun.jdmk</groupId>
  24. <artifactId>jmxtools</artifactId>
  25. </exclusion>
  26. <exclusion>
  27. <groupId>com.sun.jmx</groupId>
  28. <artifactId>jmxri</artifactId>
  29. </exclusion>
  30. </exclusions>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.apache.hadoop</groupId>
  34. <artifactId>hadoop-yarn-api</artifactId>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <plugins>
  39. <plugin>
  40. <artifactId>maven-jar-plugin</artifactId>
  41. <executions>
  42. <execution>
  43. <goals>
  44. <goal>test-jar</goal>
  45. </goals>
  46. <phase>test-compile</phase>
  47. </execution>
  48. </executions>
  49. </plugin>
  50. <plugin>
  51. <artifactId>maven-antrun-plugin</artifactId>
  52. <executions>
  53. <execution>
  54. <id>create-protobuf-generated-sources-directory</id>
  55. <phase>initialize</phase>
  56. <configuration>
  57. <target>
  58. <mkdir dir="target/generated-sources/proto" />
  59. </target>
  60. </configuration>
  61. <goals>
  62. <goal>run</goal>
  63. </goals>
  64. </execution>
  65. </executions>
  66. </plugin>
  67. <plugin>
  68. <groupId>org.codehaus.mojo</groupId>
  69. <artifactId>exec-maven-plugin</artifactId>
  70. <executions>
  71. <execution>
  72. <id>generate-sources</id>
  73. <phase>generate-sources</phase>
  74. <configuration>
  75. <executable>protoc</executable>
  76. <arguments>
  77. <argument>-I../hadoop-yarn-api/src/main/proto/</argument>
  78. <argument>-Isrc/main/proto/</argument>
  79. <argument>--java_out=target/generated-sources/proto</argument>
  80. <argument>src/main/proto/yarnprototunnelrpc.proto</argument>
  81. </arguments>
  82. </configuration>
  83. <goals>
  84. <goal>exec</goal>
  85. </goals>
  86. </execution>
  87. <execution>
  88. <id>generate-version</id>
  89. <phase>generate-sources</phase>
  90. <configuration>
  91. <executable>scripts/saveVersion.sh</executable>
  92. <arguments>
  93. <argument>${yarn.version}</argument>
  94. <argument>${project.build.directory}</argument>
  95. </arguments>
  96. </configuration>
  97. <goals>
  98. <goal>exec</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.codehaus.mojo</groupId>
  105. <artifactId>build-helper-maven-plugin</artifactId>
  106. <executions>
  107. <execution>
  108. <id>add-source</id>
  109. <phase>generate-sources</phase>
  110. <goals>
  111. <goal>add-source</goal>
  112. </goals>
  113. <configuration>
  114. <sources>
  115. <source>target/generated-sources/proto</source>
  116. <source>target/generated-sources/version</source>
  117. </sources>
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. </plugins>
  123. </build>
  124. </project>