pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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>2.9.0-SNAPSHOT</version>
  21. <relativePath>../../hadoop-project</relativePath>
  22. </parent>
  23. <artifactId>hadoop-sls</artifactId>
  24. <version>2.9.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>com.codahale.metrics</groupId>
  50. <artifactId>metrics-core</artifactId>
  51. <scope>compile</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.mortbay.jetty</groupId>
  55. <artifactId>jetty</artifactId>
  56. <scope>provided</scope>
  57. <exclusions>
  58. <exclusion>
  59. <groupId>org.mortbay.jetty</groupId>
  60. <artifactId>servlet-api</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.mortbay.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.apache.commons</groupId>
  75. <artifactId>commons-lang3</artifactId>
  76. <version>3.4</version>
  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>org.codehaus.mojo</groupId>
  113. <artifactId>findbugs-maven-plugin</artifactId>
  114. <configuration>
  115. <findbugsXmlOutput>true</findbugsXmlOutput>
  116. <xmlOutput>true</xmlOutput>
  117. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  118. <effort>Max</effort>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.rat</groupId>
  123. <artifactId>apache-rat-plugin</artifactId>
  124. <configuration>
  125. <excludes>
  126. <exclude>src/main/data/2jobs2min-rumen-jh.json</exclude>
  127. <exclude>src/main/html/js/thirdparty/jquery.js</exclude>
  128. <exclude>src/main/html/js/thirdparty/d3-LICENSE</exclude>
  129. <exclude>src/main/html/js/thirdparty/d3.v3.js</exclude>
  130. <exclude>src/main/html/simulate.html.template</exclude>
  131. <exclude>src/main/html/simulate.info.html.template</exclude>
  132. <exclude>src/main/html/track.html.template</exclude>
  133. <exclude>src/test/resources/simulate.html.template</exclude>
  134. <exclude>src/test/resources/simulate.info.html.template</exclude>
  135. <exclude>src/test/resources/track.html.template</exclude>
  136. <exclude>src/test/resources/syn.json</exclude>
  137. <exclude>src/test/resources/inputsls.json</exclude>
  138. <exclude>src/test/resources/nodes.json</exclude>
  139. <exclude>src/test/resources/exit-invariants.txt</exclude>
  140. <exclude>src/test/resources/ongoing-invariants.txt</exclude>
  141. </excludes>
  142. </configuration>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. <profiles>
  147. <profile>
  148. <id>docs</id>
  149. <activation>
  150. <activeByDefault>false</activeByDefault>
  151. </activation>
  152. <build>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-site-plugin</artifactId>
  157. <executions>
  158. <execution>
  159. <phase>package</phase>
  160. <goals>
  161. <goal>site</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </profile>
  169. <profile>
  170. <id>dist</id>
  171. <activation>
  172. <activeByDefault>false</activeByDefault>
  173. </activation>
  174. <build>
  175. <plugins>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-assembly-plugin</artifactId>
  179. <dependencies>
  180. <dependency>
  181. <groupId>org.apache.hadoop</groupId>
  182. <artifactId>hadoop-assemblies</artifactId>
  183. <version>${project.version}</version>
  184. </dependency>
  185. </dependencies>
  186. <executions>
  187. <execution>
  188. <id>dist</id>
  189. <phase>prepare-package</phase>
  190. <goals>
  191. <goal>single</goal>
  192. </goals>
  193. <configuration>
  194. <appendAssemblyId>false</appendAssemblyId>
  195. <attach>false</attach>
  196. <finalName>${project.artifactId}-${project.version}</finalName>
  197. <descriptorRefs>
  198. <descriptorRef>hadoop-sls</descriptorRef>
  199. </descriptorRefs>
  200. </configuration>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-dependency-plugin</artifactId>
  207. <executions>
  208. <execution>
  209. <id>deplist</id>
  210. <phase>compile</phase>
  211. <goals>
  212. <goal>list</goal>
  213. </goals>
  214. <configuration>
  215. <!-- referenced by a built-in command -->
  216. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt</outputFile>
  217. </configuration>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. </plugins>
  222. </build>
  223. </profile>
  224. </profiles>
  225. </project>