pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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.3.0-SNAPSHOT</version>
  21. <relativePath>../../../hadoop-project</relativePath>
  22. </parent>
  23. <artifactId>hadoop-dynamometer-infra</artifactId>
  24. <version>3.3.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>com.google.guava</groupId>
  41. <artifactId>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. </dependency>
  61. <dependency>
  62. <groupId>org.apache.hadoop</groupId>
  63. <artifactId>hadoop-minicluster</artifactId>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-dynamometer-workload</artifactId>
  69. <scope>compile</scope>
  70. <version>${project.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.mockito</groupId>
  74. <artifactId>mockito-all</artifactId>
  75. <version>1.10.19</version>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.hadoop</groupId>
  80. <artifactId>hadoop-common</artifactId>
  81. <type>test-jar</type>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.hadoop</groupId>
  86. <artifactId>hadoop-yarn-server-tests</artifactId>
  87. <type>test-jar</type>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-dynamometer-workload</artifactId>
  93. <type>test-jar</type>
  94. <scope>test</scope>
  95. <version>${project.version}</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-source-plugin</artifactId>
  103. <configuration>
  104. <attach>true</attach>
  105. </configuration>
  106. <executions>
  107. <execution>
  108. <goals>
  109. <goal>jar</goal>
  110. </goals>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.apache.rat</groupId>
  116. <artifactId>apache-rat-plugin</artifactId>
  117. <configuration>
  118. <excludes>
  119. <exclude>src/test/resources/blocks/dn1-a-0-r-00001</exclude>
  120. <exclude>src/test/resources/blocks/dn0-a-0-r-00000</exclude>
  121. <exclude>src/test/resources/blocks/dn2-a-0-r-00002</exclude>
  122. <exclude>src/test/resources/hadoop_3_1/fsimage_0000000000000061740.md5</exclude>
  123. <exclude>src/test/resources/hadoop_3_1/VERSION</exclude>
  124. </excludes>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-surefire-plugin</artifactId>
  130. <configuration>
  131. <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
  132. <environmentVariables>
  133. <JAVA_HOME>${java.home}</JAVA_HOME>
  134. </environmentVariables>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. <profiles>
  140. <profile>
  141. <id>dist</id>
  142. <activation>
  143. <activeByDefault>false</activeByDefault>
  144. </activation>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-assembly-plugin</artifactId>
  150. <dependencies>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-assemblies</artifactId>
  154. <version>${project.version}</version>
  155. </dependency>
  156. </dependencies>
  157. <executions>
  158. <execution>
  159. <id>dist</id>
  160. <phase>prepare-package</phase>
  161. <goals>
  162. <goal>single</goal>
  163. </goals>
  164. <configuration>
  165. <appendAssemblyId>false</appendAssemblyId>
  166. <attach>false</attach>
  167. <finalName>${project.artifactId}-${project.version}</finalName>
  168. <descriptorRefs>
  169. <descriptorRef>hadoop-dynamometer-infra</descriptorRef>
  170. </descriptorRefs>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-dependency-plugin</artifactId>
  178. <executions>
  179. <execution>
  180. <id>deplist</id>
  181. <phase>compile</phase>
  182. <goals>
  183. <goal>list</goal>
  184. </goals>
  185. <configuration>
  186. <!-- referenced by a built-in command -->
  187. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  188. </configuration>
  189. </execution>
  190. <execution>
  191. <phase>package</phase>
  192. <goals>
  193. <goal>copy-dependencies</goal>
  194. </goals>
  195. <configuration>
  196. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  197. <includeScope>runtime</includeScope>
  198. </configuration>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. </profile>
  205. </profiles>
  206. </project>