pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="UTF-8"?>
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-project</artifactId>
  20. <version>3.5.0-SNAPSHOT</version>
  21. <relativePath>../../../hadoop-project</relativePath>
  22. </parent>
  23. <artifactId>hadoop-dynamometer-infra</artifactId>
  24. <version>3.5.0-SNAPSHOT</version>
  25. <description>Apache Hadoop Dynamometer Cluster Simulator</description>
  26. <name>Apache Hadoop Dynamometer Cluster Simulator</name>
  27. <packaging>jar</packaging>
  28. <dependencies>
  29. <dependency>
  30. <groupId>commons-cli</groupId>
  31. <artifactId>commons-cli</artifactId>
  32. <scope>compile</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.commons</groupId>
  36. <artifactId>commons-lang3</artifactId>
  37. <scope>compile</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.hadoop.thirdparty</groupId>
  41. <artifactId>hadoop-shaded-guava</artifactId>
  42. <scope>compile</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>junit</groupId>
  46. <artifactId>junit</artifactId>
  47. <!-- JUnit is required by MiniDFSCluster, which is used outside of tests -->
  48. <scope>compile</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.hadoop</groupId>
  52. <artifactId>hadoop-client</artifactId>
  53. <scope>compile</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.hadoop</groupId>
  57. <artifactId>hadoop-hdfs</artifactId>
  58. <type>test-jar</type>
  59. <scope>compile</scope>
  60. <exclusions>
  61. <exclusion>
  62. <groupId>org.ow2.asm</groupId>
  63. <artifactId>asm-commons</artifactId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-minicluster</artifactId>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.hadoop</groupId>
  74. <artifactId>hadoop-dynamometer-workload</artifactId>
  75. <scope>compile</scope>
  76. <version>${project.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.mockito</groupId>
  80. <artifactId>mockito-core</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-common</artifactId>
  86. <type>test-jar</type>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.hadoop</groupId>
  91. <artifactId>hadoop-yarn-server-tests</artifactId>
  92. <type>test-jar</type>
  93. <scope>test</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.hadoop</groupId>
  97. <artifactId>hadoop-dynamometer-workload</artifactId>
  98. <type>test-jar</type>
  99. <scope>test</scope>
  100. <version>${project.version}</version>
  101. </dependency>
  102. </dependencies>
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-source-plugin</artifactId>
  108. <configuration>
  109. <attach>true</attach>
  110. </configuration>
  111. <executions>
  112. <execution>
  113. <goals>
  114. <goal>jar</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.rat</groupId>
  121. <artifactId>apache-rat-plugin</artifactId>
  122. <configuration>
  123. <excludes>
  124. <exclude>src/test/resources/blocks/dn1-a-0-r-00001</exclude>
  125. <exclude>src/test/resources/blocks/dn0-a-0-r-00000</exclude>
  126. <exclude>src/test/resources/blocks/dn2-a-0-r-00002</exclude>
  127. <exclude>src/test/resources/hadoop_3_1/fsimage_0000000000000061740.md5</exclude>
  128. <exclude>src/test/resources/hadoop_3_1/VERSION</exclude>
  129. </excludes>
  130. </configuration>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-surefire-plugin</artifactId>
  135. <configuration>
  136. <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
  137. <environmentVariables>
  138. <JAVA_HOME>${java.home}</JAVA_HOME>
  139. </environmentVariables>
  140. </configuration>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. <profiles>
  145. <profile>
  146. <id>dist</id>
  147. <activation>
  148. <activeByDefault>false</activeByDefault>
  149. </activation>
  150. <build>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-assembly-plugin</artifactId>
  155. <dependencies>
  156. <dependency>
  157. <groupId>org.apache.hadoop</groupId>
  158. <artifactId>hadoop-assemblies</artifactId>
  159. <version>${project.version}</version>
  160. </dependency>
  161. </dependencies>
  162. <executions>
  163. <execution>
  164. <id>dist</id>
  165. <phase>prepare-package</phase>
  166. <goals>
  167. <goal>single</goal>
  168. </goals>
  169. <configuration>
  170. <appendAssemblyId>false</appendAssemblyId>
  171. <attach>false</attach>
  172. <finalName>${project.artifactId}-${project.version}</finalName>
  173. <descriptorRefs>
  174. <descriptorRef>hadoop-dynamometer-infra</descriptorRef>
  175. </descriptorRefs>
  176. </configuration>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-dependency-plugin</artifactId>
  183. <executions>
  184. <execution>
  185. <id>deplist</id>
  186. <phase>compile</phase>
  187. <goals>
  188. <goal>list</goal>
  189. </goals>
  190. <configuration>
  191. <!-- referenced by a built-in command -->
  192. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  193. </configuration>
  194. </execution>
  195. <execution>
  196. <phase>package</phase>
  197. <goals>
  198. <goal>copy-dependencies</goal>
  199. </goals>
  200. <configuration>
  201. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  202. <includeScope>runtime</includeScope>
  203. </configuration>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. </plugins>
  208. </build>
  209. </profile>
  210. </profiles>
  211. </project>