pom.xml 5.5 KB

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