pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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>0.23.0</version>
  18. </parent>
  19. <modelVersion>4.0.0</modelVersion>
  20. <groupId>org.apache.hadoop</groupId>
  21. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  22. <version>0.23.0</version>
  23. <name>hadoop-yarn-server-resourcemanager</name>
  24. <properties>
  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.apache.maven.plugins</groupId>
  71. <artifactId>maven-surefire-plugin</artifactId>
  72. <configuration>
  73. <systemPropertyVariables>
  74. <java.security.krb5.conf>${basedir}/src/test/resources/krb5.conf</java.security.krb5.conf>
  75. </systemPropertyVariables>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <groupId>org.codehaus.mojo</groupId>
  80. <artifactId>exec-maven-plugin</artifactId>
  81. <executions>
  82. <execution>
  83. <id>generate-sources</id>
  84. <phase>generate-sources</phase>
  85. <configuration>
  86. <executable>protoc</executable>
  87. <arguments>
  88. <argument>-Isrc/main/proto/</argument>
  89. <argument>--java_out=target/generated-sources/proto</argument>
  90. <argument>src/main/proto/yarn_server_resourcemanager_service_protos.proto</argument>
  91. <argument>src/main/proto/RMAdminProtocol.proto</argument>
  92. </arguments>
  93. </configuration>
  94. <goals>
  95. <goal>exec</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.codehaus.mojo</groupId>
  102. <artifactId>build-helper-maven-plugin</artifactId>
  103. <executions>
  104. <execution>
  105. <id>add-source</id>
  106. <phase>generate-sources</phase>
  107. <goals>
  108. <goal>add-source</goal>
  109. </goals>
  110. <configuration>
  111. <sources>
  112. <source>target/generated-sources/proto</source>
  113. </sources>
  114. </configuration>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. <profiles>
  121. <profile>
  122. <id>visualize</id>
  123. <activation>
  124. <activeByDefault>false</activeByDefault>
  125. </activation>
  126. <build>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.codehaus.mojo</groupId>
  130. <artifactId>exec-maven-plugin</artifactId>
  131. <version>1.2</version>
  132. <executions>
  133. <execution>
  134. <phase>compile</phase>
  135. <goals>
  136. <goal>java</goal>
  137. </goals>
  138. <configuration>
  139. <mainClass>org.apache.hadoop.yarn.util.VisualizeStateMachine</mainClass>
  140. <arguments>
  141. <argument>ResourceManager</argument>
  142. <argument>org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl,
  143. org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl,
  144. org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerImpl,
  145. org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeImpl</argument>
  146. <argument>ResourceManager.gv</argument>
  147. </arguments>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. </plugins>
  153. </build>
  154. </profile>
  155. </profiles>
  156. </project>