pom.xml 5.1 KB

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