pom.xml 6.8 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 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.0.0-alpha2-SNAPSHOT</version>
  21. <relativePath>../../hadoop-project</relativePath>
  22. </parent>
  23. <groupId>org.apache.hadoop</groupId>
  24. <artifactId>hadoop-sls</artifactId>
  25. <version>3.0.0-alpha2-SNAPSHOT</version>
  26. <description>Apache Hadoop Scheduler Load Simulator</description>
  27. <name>Apache Hadoop Scheduler Load Simulator</name>
  28. <packaging>jar</packaging>
  29. <dependencies>
  30. <dependency>
  31. <groupId>junit</groupId>
  32. <artifactId>junit</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.hadoop</groupId>
  37. <artifactId>hadoop-client</artifactId>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-minicluster</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-rumen</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.codahale.metrics</groupId>
  51. <artifactId>metrics-core</artifactId>
  52. <scope>compile</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.mortbay.jetty</groupId>
  56. <artifactId>jetty</artifactId>
  57. <scope>provided</scope>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.mortbay.jetty</groupId>
  61. <artifactId>servlet-api</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.mortbay.jetty</groupId>
  67. <artifactId>jetty-util</artifactId>
  68. <scope>provided</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.fasterxml.jackson.core</groupId>
  72. <artifactId>jackson-databind</artifactId>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-source-plugin</artifactId>
  80. <configuration>
  81. <attach>true</attach>
  82. </configuration>
  83. <executions>
  84. <execution>
  85. <goals>
  86. <goal>jar</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.codehaus.mojo</groupId>
  93. <artifactId>findbugs-maven-plugin</artifactId>
  94. <configuration>
  95. <findbugsXmlOutput>true</findbugsXmlOutput>
  96. <xmlOutput>true</xmlOutput>
  97. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  98. <effort>Max</effort>
  99. </configuration>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.rat</groupId>
  103. <artifactId>apache-rat-plugin</artifactId>
  104. <configuration>
  105. <excludes>
  106. <exclude>src/main/data/2jobs2min-rumen-jh.json</exclude>
  107. <exclude>src/main/html/js/thirdparty/jquery.js</exclude>
  108. <exclude>src/main/html/js/thirdparty/d3-LICENSE</exclude>
  109. <exclude>src/main/html/js/thirdparty/d3.v3.js</exclude>
  110. <exclude>src/main/html/simulate.html.template</exclude>
  111. <exclude>src/main/html/simulate.info.html.template</exclude>
  112. <exclude>src/main/html/track.html.template</exclude>
  113. <exclude>src/test/resources/simulate.html.template</exclude>
  114. <exclude>src/test/resources/simulate.info.html.template</exclude>
  115. <exclude>src/test/resources/track.html.template</exclude>
  116. </excludes>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <profiles>
  122. <profile>
  123. <id>docs</id>
  124. <activation>
  125. <activeByDefault>false</activeByDefault>
  126. </activation>
  127. <build>
  128. <plugins>
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-site-plugin</artifactId>
  132. <executions>
  133. <execution>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>site</goal>
  137. </goals>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. </plugins>
  142. </build>
  143. </profile>
  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>