pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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 https://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-sls</artifactId>
  24. <version>3.5.0-SNAPSHOT</version>
  25. <description>Apache Hadoop Scheduler Load Simulator</description>
  26. <name>Apache Hadoop Scheduler Load Simulator</name>
  27. <packaging>jar</packaging>
  28. <dependencies>
  29. <dependency>
  30. <groupId>junit</groupId>
  31. <artifactId>junit</artifactId>
  32. <scope>test</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.hadoop</groupId>
  36. <artifactId>hadoop-client</artifactId>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.hadoop</groupId>
  41. <artifactId>hadoop-minicluster</artifactId>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-rumen</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.dropwizard.metrics</groupId>
  50. <artifactId>metrics-core</artifactId>
  51. <scope>compile</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.eclipse.jetty</groupId>
  55. <artifactId>jetty-server</artifactId>
  56. <scope>provided</scope>
  57. <exclusions>
  58. <exclusion>
  59. <groupId>org.eclipse.jetty</groupId>
  60. <artifactId>javax.servlet-api</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.eclipse.jetty</groupId>
  66. <artifactId>jetty-util</artifactId>
  67. <scope>provided</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.fasterxml.jackson.core</groupId>
  71. <artifactId>jackson-databind</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.mockito</groupId>
  75. <artifactId>mockito-inline</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.junit.jupiter</groupId>
  80. <artifactId>junit-jupiter-api</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.junit.jupiter</groupId>
  85. <artifactId>junit-jupiter-engine</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.junit.jupiter</groupId>
  90. <artifactId>junit-jupiter-params</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.junit.platform</groupId>
  95. <artifactId>junit-platform-launcher</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.junit.vintage</groupId>
  100. <artifactId>junit-vintage-engine</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. </dependencies>
  104. <build>
  105. <resources>
  106. <resource>
  107. <directory>src/main/</directory>
  108. <includes>
  109. <include>html/simulate.html.template</include>
  110. <include>html/simulate.info.html.template</include>
  111. <include>html/track.html.template</include>
  112. <include>html/css/bootstrap-responsive.min.css</include>
  113. <include>html/css/bootstrap.min.css</include>
  114. <include>html/js/thirdparty/bootstrap.min.js</include>
  115. <include>html/js/thirdparty/d3.v3.js</include>
  116. <include>html/js/thirdparty/d3-LICENSE</include>
  117. <include>html/js/thirdparty/jquery.js</include>
  118. </includes>
  119. </resource>
  120. </resources>
  121. <plugins>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-source-plugin</artifactId>
  125. <configuration>
  126. <attach>true</attach>
  127. </configuration>
  128. <executions>
  129. <execution>
  130. <goals>
  131. <goal>jar</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>com.github.spotbugs</groupId>
  138. <artifactId>spotbugs-maven-plugin</artifactId>
  139. <configuration>
  140. <xmlOutput>true</xmlOutput>
  141. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  142. <effort>Max</effort>
  143. </configuration>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.rat</groupId>
  147. <artifactId>apache-rat-plugin</artifactId>
  148. <configuration>
  149. <excludes>
  150. <exclude>src/main/data/2jobs2min-rumen-jh.json</exclude>
  151. <exclude>src/main/html/js/thirdparty/jquery.js</exclude>
  152. <exclude>src/main/html/js/thirdparty/d3.v3.js</exclude>
  153. <exclude>src/main/html/simulate.html.template</exclude>
  154. <exclude>src/main/html/simulate.info.html.template</exclude>
  155. <exclude>src/main/html/track.html.template</exclude>
  156. <exclude>src/test/resources/simulate.html.template</exclude>
  157. <exclude>src/test/resources/simulate.info.html.template</exclude>
  158. <exclude>src/test/resources/track.html.template</exclude>
  159. <exclude>src/test/resources/syn.json</exclude>
  160. <exclude>src/test/resources/syn_generic.json</exclude>
  161. <exclude>src/test/resources/syn_stream.json</exclude>
  162. <exclude>src/test/resources/inputsls.json</exclude>
  163. <exclude>src/test/resources/nodes.json</exclude>
  164. <exclude>src/test/resources/nodes-with-resources.json</exclude>
  165. <exclude>src/test/resources/exit-invariants.txt</exclude>
  166. <exclude>src/test/resources/ongoing-invariants.txt</exclude>
  167. <exclude>src/test/resources/sls_dag.json</exclude>
  168. </excludes>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. <profiles>
  174. <profile>
  175. <id>dist</id>
  176. <activation>
  177. <activeByDefault>false</activeByDefault>
  178. </activation>
  179. <build>
  180. <plugins>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-assembly-plugin</artifactId>
  184. <dependencies>
  185. <dependency>
  186. <groupId>org.apache.hadoop</groupId>
  187. <artifactId>hadoop-assemblies</artifactId>
  188. <version>${project.version}</version>
  189. </dependency>
  190. </dependencies>
  191. <executions>
  192. <execution>
  193. <id>dist</id>
  194. <phase>prepare-package</phase>
  195. <goals>
  196. <goal>single</goal>
  197. </goals>
  198. <configuration>
  199. <appendAssemblyId>false</appendAssemblyId>
  200. <attach>false</attach>
  201. <finalName>${project.artifactId}-${project.version}</finalName>
  202. <descriptorRefs>
  203. <descriptorRef>hadoop-sls</descriptorRef>
  204. </descriptorRefs>
  205. </configuration>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-dependency-plugin</artifactId>
  212. <executions>
  213. <execution>
  214. <id>deplist</id>
  215. <phase>compile</phase>
  216. <goals>
  217. <goal>list</goal>
  218. </goals>
  219. <configuration>
  220. <!-- referenced by a built-in command -->
  221. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  222. </configuration>
  223. </execution>
  224. </executions>
  225. </plugin>
  226. </plugins>
  227. </build>
  228. </profile>
  229. </profiles>
  230. </project>