pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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>
  14. <parent>
  15. <artifactId>hadoop-yarn-server</artifactId>
  16. <groupId>org.apache.hadoop</groupId>
  17. <version>${yarn.version}</version>
  18. </parent>
  19. <modelVersion>4.0.0</modelVersion>
  20. <groupId>org.apache.hadoop</groupId>
  21. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  22. <name>hadoop-yarn-server-resourcemanager</name>
  23. <properties>
  24. <install.file>${project.artifact.file}</install.file>
  25. <yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.apache.hadoop</groupId>
  30. <artifactId>hadoop-yarn-server-common</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.apache.hadoop</groupId>
  34. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <plugins>
  39. <!-- Publish tests jar -->
  40. <plugin>
  41. <artifactId>maven-jar-plugin</artifactId>
  42. <executions>
  43. <execution>
  44. <goals>
  45. <goal>test-jar</goal>
  46. </goals>
  47. <phase>test-compile</phase>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <artifactId>maven-antrun-plugin</artifactId>
  53. <executions>
  54. <execution>
  55. <id>create-protobuf-generated-sources-directory</id>
  56. <phase>initialize</phase>
  57. <configuration>
  58. <target>
  59. <mkdir dir="target/generated-sources/proto" />
  60. </target>
  61. </configuration>
  62. <goals>
  63. <goal>run</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. <plugin>
  69. <groupId>org.codehaus.mojo</groupId>
  70. <artifactId>exec-maven-plugin</artifactId>
  71. <executions>
  72. <execution>
  73. <id>generate-sources</id>
  74. <phase>generate-sources</phase>
  75. <configuration>
  76. <executable>protoc</executable>
  77. <arguments>
  78. <argument>-Isrc/main/proto/</argument>
  79. <argument>--java_out=target/generated-sources/proto</argument>
  80. <argument>src/main/proto/yarn_server_resourcemanager_service_protos.proto</argument>
  81. <argument>src/main/proto/RMAdminProtocol.proto</argument>
  82. </arguments>
  83. </configuration>
  84. <goals>
  85. <goal>exec</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.codehaus.mojo</groupId>
  92. <artifactId>build-helper-maven-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <id>add-source</id>
  96. <phase>generate-sources</phase>
  97. <goals>
  98. <goal>add-source</goal>
  99. </goals>
  100. <configuration>
  101. <sources>
  102. <source>target/generated-sources/proto</source>
  103. </sources>
  104. </configuration>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. <profiles>
  111. <profile>
  112. <id>visualize</id>
  113. <activation>
  114. <activeByDefault>false</activeByDefault>
  115. </activation>
  116. <build>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.codehaus.mojo</groupId>
  120. <artifactId>exec-maven-plugin</artifactId>
  121. <version>1.2</version>
  122. <executions>
  123. <execution>
  124. <phase>compile</phase>
  125. <goals>
  126. <goal>java</goal>
  127. </goals>
  128. <configuration>
  129. <mainClass>org.apache.hadoop.yarn.util.VisualizeStateMachine</mainClass>
  130. <arguments>
  131. <argument>ResourceManager</argument>
  132. <argument>org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl,
  133. org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl,
  134. org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerImpl,
  135. org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeImpl</argument>
  136. <argument>ResourceManager.gv</argument>
  137. </arguments>
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. </profile>
  145. </profiles>
  146. </project>