pom.xml 7.3 KB

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