pom.xml 7.0 KB

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