pom.xml 2.6 KB

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