pom.xml 5.0 KB

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