pom.xml 7.4 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 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-core</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <resources>
  81. <resource>
  82. <directory>src/main/</directory>
  83. <includes>
  84. <include>html/simulate.html.template</include>
  85. <include>html/simulate.info.html.template</include>
  86. <include>html/track.html.template</include>
  87. <include>html/css/bootstrap-responsive.min.css</include>
  88. <include>html/css/bootstrap.min.css</include>
  89. <include>html/js/thirdparty/bootstrap.min.js</include>
  90. <include>html/js/thirdparty/d3.v3.js</include>
  91. <include>html/js/thirdparty/d3-LICENSE</include>
  92. <include>html/js/thirdparty/jquery.js</include>
  93. </includes>
  94. </resource>
  95. </resources>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-source-plugin</artifactId>
  100. <configuration>
  101. <attach>true</attach>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <goals>
  106. <goal>jar</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>com.github.spotbugs</groupId>
  113. <artifactId>spotbugs-maven-plugin</artifactId>
  114. <configuration>
  115. <xmlOutput>true</xmlOutput>
  116. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  117. <effort>Max</effort>
  118. </configuration>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.rat</groupId>
  122. <artifactId>apache-rat-plugin</artifactId>
  123. <configuration>
  124. <excludes>
  125. <exclude>src/main/data/2jobs2min-rumen-jh.json</exclude>
  126. <exclude>src/main/html/js/thirdparty/jquery.js</exclude>
  127. <exclude>src/main/html/js/thirdparty/d3.v3.js</exclude>
  128. <exclude>src/main/html/simulate.html.template</exclude>
  129. <exclude>src/main/html/simulate.info.html.template</exclude>
  130. <exclude>src/main/html/track.html.template</exclude>
  131. <exclude>src/test/resources/simulate.html.template</exclude>
  132. <exclude>src/test/resources/simulate.info.html.template</exclude>
  133. <exclude>src/test/resources/track.html.template</exclude>
  134. <exclude>src/test/resources/syn.json</exclude>
  135. <exclude>src/test/resources/syn_generic.json</exclude>
  136. <exclude>src/test/resources/syn_stream.json</exclude>
  137. <exclude>src/test/resources/inputsls.json</exclude>
  138. <exclude>src/test/resources/nodes.json</exclude>
  139. <exclude>src/test/resources/nodes-with-resources.json</exclude>
  140. <exclude>src/test/resources/exit-invariants.txt</exclude>
  141. <exclude>src/test/resources/ongoing-invariants.txt</exclude>
  142. <exclude>src/test/resources/sls_dag.json</exclude>
  143. </excludes>
  144. </configuration>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. <profiles>
  149. <profile>
  150. <id>dist</id>
  151. <activation>
  152. <activeByDefault>false</activeByDefault>
  153. </activation>
  154. <build>
  155. <plugins>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-assembly-plugin</artifactId>
  159. <dependencies>
  160. <dependency>
  161. <groupId>org.apache.hadoop</groupId>
  162. <artifactId>hadoop-assemblies</artifactId>
  163. <version>${project.version}</version>
  164. </dependency>
  165. </dependencies>
  166. <executions>
  167. <execution>
  168. <id>dist</id>
  169. <phase>prepare-package</phase>
  170. <goals>
  171. <goal>single</goal>
  172. </goals>
  173. <configuration>
  174. <appendAssemblyId>false</appendAssemblyId>
  175. <attach>false</attach>
  176. <finalName>${project.artifactId}-${project.version}</finalName>
  177. <descriptorRefs>
  178. <descriptorRef>hadoop-sls</descriptorRef>
  179. </descriptorRefs>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-dependency-plugin</artifactId>
  187. <executions>
  188. <execution>
  189. <id>deplist</id>
  190. <phase>compile</phase>
  191. <goals>
  192. <goal>list</goal>
  193. </goals>
  194. <configuration>
  195. <!-- referenced by a built-in command -->
  196. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  197. </configuration>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. </plugins>
  202. </build>
  203. </profile>
  204. </profiles>
  205. </project>