pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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-common</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-mapreduce-client-shuffle</artifactId>
  57. </dependency>
  58. </dependencies>
  59. <build>
  60. <!-- local name for links -->
  61. <finalName>mr-app</finalName>
  62. <plugins>
  63. <plugin>
  64. <artifactId>maven-jar-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <goals>
  68. <goal>test-jar</goal>
  69. </goals>
  70. <phase>test-compile</phase>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <artifactId>maven-dependency-plugin</artifactId>
  76. <executions>
  77. <execution>
  78. <id>build-classpath</id>
  79. <phase>generate-sources</phase>
  80. <goals>
  81. <goal>build-classpath</goal>
  82. </goals>
  83. <configuration>
  84. <outputFile>target/classes/mrapp-generated-classpath</outputFile>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <artifactId>maven-antrun-plugin</artifactId>
  91. <executions>
  92. <execution>
  93. <id>create-mr-app-symlinks</id>
  94. <phase>package</phase>
  95. <configuration>
  96. <target>
  97. <symlink link="${applink.base}.jar"
  98. resource="mr-app.jar" failonerror="false"/>
  99. <symlink link="${applink.base}-0.24.0-SNAPSHOT.jar"
  100. resource="mr-app.jar" failonerror="false"/>
  101. </target>
  102. </configuration>
  103. <goals>
  104. <goal>run</goal>
  105. </goals>
  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. <classpathScope>test</classpathScope>
  131. <mainClass>org.apache.hadoop.yarn.util.VisualizeStateMachine</mainClass>
  132. <arguments>
  133. <argument>MapReduce</argument>
  134. <argument>org.apache.hadoop.mapreduce.v2.app.job.impl.JobImpl,
  135. org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl,
  136. org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl</argument>
  137. <argument>MapReduce.gv</argument>
  138. </arguments>
  139. </configuration>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. </plugins>
  144. </build>
  145. </profile>
  146. </profiles>
  147. </project>