pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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-inline</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. <dependency>
  103. <groupId>org.junit.jupiter</groupId>
  104. <artifactId>junit-jupiter-api</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.junit.jupiter</groupId>
  109. <artifactId>junit-jupiter-engine</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.junit.jupiter</groupId>
  114. <artifactId>junit-jupiter-params</artifactId>
  115. <scope>test</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.junit.platform</groupId>
  119. <artifactId>junit-platform-launcher</artifactId>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.junit.vintage</groupId>
  124. <artifactId>junit-vintage-engine</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. </dependencies>
  128. <build>
  129. <plugins>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-source-plugin</artifactId>
  133. <configuration>
  134. <attach>true</attach>
  135. </configuration>
  136. <executions>
  137. <execution>
  138. <goals>
  139. <goal>jar</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.rat</groupId>
  146. <artifactId>apache-rat-plugin</artifactId>
  147. <configuration>
  148. <excludes>
  149. <exclude>src/test/resources/blocks/dn1-a-0-r-00001</exclude>
  150. <exclude>src/test/resources/blocks/dn0-a-0-r-00000</exclude>
  151. <exclude>src/test/resources/blocks/dn2-a-0-r-00002</exclude>
  152. <exclude>src/test/resources/hadoop_3_1/fsimage_0000000000000061740.md5</exclude>
  153. <exclude>src/test/resources/hadoop_3_1/VERSION</exclude>
  154. </excludes>
  155. </configuration>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-surefire-plugin</artifactId>
  160. <configuration>
  161. <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
  162. <environmentVariables>
  163. <JAVA_HOME>${java.home}</JAVA_HOME>
  164. </environmentVariables>
  165. </configuration>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. <profiles>
  170. <profile>
  171. <id>dist</id>
  172. <activation>
  173. <activeByDefault>false</activeByDefault>
  174. </activation>
  175. <build>
  176. <plugins>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-assembly-plugin</artifactId>
  180. <dependencies>
  181. <dependency>
  182. <groupId>org.apache.hadoop</groupId>
  183. <artifactId>hadoop-assemblies</artifactId>
  184. <version>${project.version}</version>
  185. </dependency>
  186. </dependencies>
  187. <executions>
  188. <execution>
  189. <id>dist</id>
  190. <phase>prepare-package</phase>
  191. <goals>
  192. <goal>single</goal>
  193. </goals>
  194. <configuration>
  195. <appendAssemblyId>false</appendAssemblyId>
  196. <attach>false</attach>
  197. <finalName>${project.artifactId}-${project.version}</finalName>
  198. <descriptorRefs>
  199. <descriptorRef>hadoop-dynamometer-infra</descriptorRef>
  200. </descriptorRefs>
  201. </configuration>
  202. </execution>
  203. </executions>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-dependency-plugin</artifactId>
  208. <executions>
  209. <execution>
  210. <id>deplist</id>
  211. <phase>compile</phase>
  212. <goals>
  213. <goal>list</goal>
  214. </goals>
  215. <configuration>
  216. <!-- referenced by a built-in command -->
  217. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  218. </configuration>
  219. </execution>
  220. <execution>
  221. <phase>package</phase>
  222. <goals>
  223. <goal>copy-dependencies</goal>
  224. </goals>
  225. <configuration>
  226. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  227. <includeScope>runtime</includeScope>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. </plugins>
  233. </build>
  234. </profile>
  235. </profiles>
  236. </project>