pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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-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-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. </dependencies>
  71. <build>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-source-plugin</artifactId>
  76. <configuration>
  77. <attach>true</attach>
  78. </configuration>
  79. <executions>
  80. <execution>
  81. <goals>
  82. <goal>jar</goal>
  83. </goals>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. <plugin>
  88. <groupId>org.codehaus.mojo</groupId>
  89. <artifactId>findbugs-maven-plugin</artifactId>
  90. <configuration>
  91. <findbugsXmlOutput>true</findbugsXmlOutput>
  92. <xmlOutput>true</xmlOutput>
  93. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  94. <effort>Max</effort>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.rat</groupId>
  99. <artifactId>apache-rat-plugin</artifactId>
  100. <configuration>
  101. <excludes>
  102. <exclude>src/main/data/2jobs2min-rumen-jh.json</exclude>
  103. <exclude>src/main/html/js/thirdparty/jquery.js</exclude>
  104. <exclude>src/main/html/js/thirdparty/d3-LICENSE</exclude>
  105. <exclude>src/main/html/js/thirdparty/d3.v3.js</exclude>
  106. <exclude>src/main/html/simulate.html.template</exclude>
  107. <exclude>src/main/html/simulate.info.html.template</exclude>
  108. <exclude>src/main/html/track.html.template</exclude>
  109. <exclude>src/test/resources/simulate.html.template</exclude>
  110. <exclude>src/test/resources/simulate.info.html.template</exclude>
  111. <exclude>src/test/resources/track.html.template</exclude>
  112. </excludes>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. <profiles>
  118. <profile>
  119. <id>docs</id>
  120. <activation>
  121. <activeByDefault>false</activeByDefault>
  122. </activation>
  123. <build>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-site-plugin</artifactId>
  128. <executions>
  129. <execution>
  130. <phase>package</phase>
  131. <goals>
  132. <goal>site</goal>
  133. </goals>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </profile>
  140. <profile>
  141. <id>dist</id>
  142. <activation>
  143. <activeByDefault>false</activeByDefault>
  144. </activation>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-assembly-plugin</artifactId>
  150. <dependencies>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-assemblies</artifactId>
  154. <version>${project.version}</version>
  155. </dependency>
  156. </dependencies>
  157. <executions>
  158. <execution>
  159. <id>dist</id>
  160. <phase>prepare-package</phase>
  161. <goals>
  162. <goal>single</goal>
  163. </goals>
  164. <configuration>
  165. <appendAssemblyId>false</appendAssemblyId>
  166. <attach>false</attach>
  167. <finalName>${project.artifactId}-${project.version}</finalName>
  168. <descriptorRefs>
  169. <descriptorRef>hadoop-sls</descriptorRef>
  170. </descriptorRefs>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </build>
  177. </profile>
  178. </profiles>
  179. </project>