pom.xml 5.4 KB

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