pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-mapreduce-client</artifactId>
  16. <groupId>org.apache.hadoop</groupId>
  17. <version>${hadoop-mapreduce.version}</version>
  18. </parent>
  19. <modelVersion>4.0.0</modelVersion>
  20. <groupId>org.apache.hadoop</groupId>
  21. <artifactId>hadoop-mapreduce-client-app</artifactId>
  22. <name>hadoop-mapreduce-client-app</name>
  23. <properties>
  24. <install.file>${project.artifact.file}</install.file>
  25. <applink.base>${project.build.directory}/${project.name}</applink.base>
  26. <mr.basedir>${project.parent.parent.basedir}</mr.basedir>
  27. </properties>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.apache.hadoop</groupId>
  31. <artifactId>hadoop-yarn-common</artifactId>
  32. <type>test-jar</type>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.hadoop</groupId>
  37. <artifactId>hadoop-mapreduce-client-common</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.hadoop</groupId>
  41. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-yarn-server-common</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.hadoop</groupId>
  60. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  61. <type>test-jar</type>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.hadoop</groupId>
  66. <artifactId>hadoop-mapreduce-client-shuffle</artifactId>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <!-- local name for links -->
  71. <finalName>mr-app</finalName>
  72. <plugins>
  73. <plugin>
  74. <artifactId>maven-jar-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <goals>
  78. <goal>test-jar</goal>
  79. </goals>
  80. <phase>test-compile</phase>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <artifactId>maven-dependency-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <id>build-classpath</id>
  89. <phase>generate-sources</phase>
  90. <goals>
  91. <goal>build-classpath</goal>
  92. </goals>
  93. <configuration>
  94. <outputFile>target/classes/mrapp-generated-classpath</outputFile>
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <artifactId>maven-antrun-plugin</artifactId>
  101. <executions>
  102. <execution>
  103. <id>create-mr-app-symlinks</id>
  104. <phase>package</phase>
  105. <configuration>
  106. <target>
  107. <symlink link="${applink.base}.jar"
  108. resource="mr-app.jar" failonerror="false"/>
  109. <symlink link="${applink.base}-0.23.0-SNAPSHOT.jar"
  110. resource="mr-app.jar" failonerror="false"/>
  111. </target>
  112. </configuration>
  113. <goals>
  114. <goal>run</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <profiles>
  122. <profile>
  123. <id>visualize</id>
  124. <activation>
  125. <activeByDefault>false</activeByDefault>
  126. </activation>
  127. <build>
  128. <plugins>
  129. <plugin>
  130. <groupId>org.codehaus.mojo</groupId>
  131. <artifactId>exec-maven-plugin</artifactId>
  132. <version>1.2</version>
  133. <executions>
  134. <execution>
  135. <phase>compile</phase>
  136. <goals>
  137. <goal>java</goal>
  138. </goals>
  139. <configuration>
  140. <classpathScope>test</classpathScope>
  141. <mainClass>org.apache.hadoop.yarn.util.VisualizeStateMachine</mainClass>
  142. <arguments>
  143. <argument>MapReduce</argument>
  144. <argument>org.apache.hadoop.mapreduce.v2.app.job.impl.JobImpl,
  145. org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl,
  146. org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl</argument>
  147. <argument>MapReduce.gv</argument>
  148. </arguments>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </profile>
  156. </profiles>
  157. </project>