pom.xml 7.8 KB

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