pom.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0"?>
  2. <project xmlns:pom="http://maven.apache.org/POM/4.0.0">
  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-api</artifactId>
  11. <name>hadoop-yarn-api</name>
  12. <properties>
  13. <install.file>${project.artifact.file}</install.file>
  14. <yarn.basedir>${project.parent.basedir}</yarn.basedir>
  15. </properties>
  16. <build>
  17. <plugins>
  18. <plugin>
  19. <artifactId>maven-antrun-plugin</artifactId>
  20. <executions>
  21. <execution>
  22. <id>create-protobuf-generated-sources-directory</id>
  23. <phase>initialize</phase>
  24. <configuration>
  25. <target>
  26. <mkdir dir="target/generated-sources/proto" />
  27. </target>
  28. </configuration>
  29. <goals>
  30. <goal>run</goal>
  31. </goals>
  32. </execution>
  33. </executions>
  34. </plugin>
  35. <plugin>
  36. <groupId>org.codehaus.mojo</groupId>
  37. <artifactId>exec-maven-plugin</artifactId>
  38. <executions>
  39. <execution>
  40. <id>generate-sources</id>
  41. <phase>generate-sources</phase>
  42. <configuration>
  43. <executable>protoc</executable>
  44. <arguments>
  45. <argument>-Isrc/main/proto/</argument>
  46. <argument>--java_out=target/generated-sources/proto</argument>
  47. <argument>src/main/proto/yarn_protos.proto</argument>
  48. <argument>src/main/proto/yarn_service_protos.proto</argument>
  49. <argument>src/main/proto/AM_RM_protocol.proto</argument>
  50. <argument>src/main/proto/client_RM_protocol.proto</argument>
  51. <argument>src/main/proto/container_manager.proto</argument>
  52. </arguments>
  53. </configuration>
  54. <goals>
  55. <goal>exec</goal>
  56. </goals>
  57. </execution>
  58. </executions>
  59. </plugin>
  60. <plugin>
  61. <groupId>org.codehaus.mojo</groupId>
  62. <artifactId>build-helper-maven-plugin</artifactId>
  63. <executions>
  64. <execution>
  65. <id>add-source</id>
  66. <phase>generate-sources</phase>
  67. <goals>
  68. <goal>add-source</goal>
  69. </goals>
  70. <configuration>
  71. <sources>
  72. <source>target/generated-sources/proto</source>
  73. </sources>
  74. </configuration>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>