pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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.4.0-SNAPSHOT</version>
  21. <relativePath>../../../hadoop-project</relativePath>
  22. </parent>
  23. <artifactId>hadoop-dynamometer-infra</artifactId>
  24. <version>3.4.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. </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. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-enforcer-plugin</artifactId>
  139. <dependencies>
  140. <dependency>
  141. <groupId>de.skuzzle.enforcer</groupId>
  142. <artifactId>restrict-imports-enforcer-rule</artifactId>
  143. <version>${restrict-imports.enforcer.version}</version>
  144. </dependency>
  145. </dependencies>
  146. <executions>
  147. <execution>
  148. <id>banned-illegal-imports</id>
  149. <phase>process-sources</phase>
  150. <goals>
  151. <goal>enforce</goal>
  152. </goals>
  153. <configuration>
  154. <rules>
  155. <restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
  156. <includeTestCode>true</includeTestCode>
  157. <reason>Use hadoop-common provided Lists rather than Guava provided Lists</reason>
  158. <bannedImports>
  159. <bannedImport>org.apache.hadoop.thirdparty.com.google.common.collect.Lists</bannedImport>
  160. <bannedImport>com.google.common.collect.Lists</bannedImport>
  161. </bannedImports>
  162. </restrictImports>
  163. </rules>
  164. </configuration>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. </plugins>
  169. </build>
  170. <profiles>
  171. <profile>
  172. <id>dist</id>
  173. <activation>
  174. <activeByDefault>false</activeByDefault>
  175. </activation>
  176. <build>
  177. <plugins>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-assembly-plugin</artifactId>
  181. <dependencies>
  182. <dependency>
  183. <groupId>org.apache.hadoop</groupId>
  184. <artifactId>hadoop-assemblies</artifactId>
  185. <version>${project.version}</version>
  186. </dependency>
  187. </dependencies>
  188. <executions>
  189. <execution>
  190. <id>dist</id>
  191. <phase>prepare-package</phase>
  192. <goals>
  193. <goal>single</goal>
  194. </goals>
  195. <configuration>
  196. <appendAssemblyId>false</appendAssemblyId>
  197. <attach>false</attach>
  198. <finalName>${project.artifactId}-${project.version}</finalName>
  199. <descriptorRefs>
  200. <descriptorRef>hadoop-dynamometer-infra</descriptorRef>
  201. </descriptorRefs>
  202. </configuration>
  203. </execution>
  204. </executions>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-dependency-plugin</artifactId>
  209. <executions>
  210. <execution>
  211. <id>deplist</id>
  212. <phase>compile</phase>
  213. <goals>
  214. <goal>list</goal>
  215. </goals>
  216. <configuration>
  217. <!-- referenced by a built-in command -->
  218. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  219. </configuration>
  220. </execution>
  221. <execution>
  222. <phase>package</phase>
  223. <goals>
  224. <goal>copy-dependencies</goal>
  225. </goals>
  226. <configuration>
  227. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  228. <includeScope>runtime</includeScope>
  229. </configuration>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. </plugins>
  234. </build>
  235. </profile>
  236. </profiles>
  237. </project>