pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Licensed to the Apache Software Foundation (ASF) under one
  5. ~ or more contributor license agreements. See the NOTICE file
  6. ~ distributed with this work for additional information
  7. ~ regarding copyright ownership. The ASF licenses this file
  8. ~ to you under the Apache License, Version 2.0 (the
  9. ~ "License"); you may not use this file except in compliance
  10. ~ with the License. You may obtain a copy of the License at
  11. ~
  12. ~ http://www.apache.org/licenses/LICENSE-2.0
  13. ~
  14. ~ Unless required by applicable law or agreed to in writing, software
  15. ~ distributed under the License is distributed on an "AS IS" BASIS,
  16. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. ~ See the License for the specific language governing permissions and
  18. ~ limitations under the License.
  19. ~
  20. -->
  21. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xmlns="http://maven.apache.org/POM/4.0.0"
  23. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  24. <modelVersion>4.0.0</modelVersion>
  25. <parent>
  26. <groupId>org.apache.hadoop</groupId>
  27. <artifactId>hadoop-project</artifactId>
  28. <version>2.9.3-SNAPSHOT</version>
  29. <relativePath>../../hadoop-project</relativePath>
  30. </parent>
  31. <artifactId>hadoop-resourceestimator</artifactId>
  32. <version>2.9.3-SNAPSHOT</version>
  33. <name>Apache Hadoop Resource Estimator Service</name>
  34. <packaging>jar</packaging>
  35. <dependencies>
  36. <dependency>
  37. <groupId>com.google.code.gson</groupId>
  38. <artifactId>gson</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.ojalgo</groupId>
  42. <artifactId>ojalgo</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-common</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-yarn-common</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.hadoop</groupId>
  54. <artifactId>hadoop-yarn-api</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.hadoop</groupId>
  58. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.slf4j</groupId>
  62. <artifactId>slf4j-api</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>javax.inject</groupId>
  66. <artifactId>javax.inject</artifactId>
  67. <version>1</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  71. <artifactId>jersey-test-framework-grizzly2</artifactId>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>javax.servlet</groupId>
  76. <artifactId>servlet-api</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.sun.jersey</groupId>
  80. <artifactId>jersey-server</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.sun.jersey</groupId>
  84. <artifactId>jersey-json</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>junit</groupId>
  88. <artifactId>junit</artifactId>
  89. <scope>test</scope>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.apache.rat</groupId>
  96. <artifactId>apache-rat-plugin</artifactId>
  97. <configuration>
  98. <excludes>
  99. <exclude>README.md</exclude>
  100. <exclude>**/*.txt</exclude>
  101. </excludes>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-checkstyle-plugin</artifactId>
  107. <configuration>
  108. <configLocation>src/config/checkstyle.xml</configLocation>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. <profiles>
  114. <profile>
  115. <id>dist</id>
  116. <activation>
  117. <activeByDefault>false</activeByDefault>
  118. </activation>
  119. <build>
  120. <plugins>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-assembly-plugin</artifactId>
  124. <configuration>
  125. <appendAssemblyId>false</appendAssemblyId>
  126. <attach>false</attach>
  127. <finalName>
  128. ${project.artifactId}-${project.version}
  129. </finalName>
  130. <descriptorRefs>
  131. <descriptorRef>hadoop-resourceestimator
  132. </descriptorRef>
  133. </descriptorRefs>
  134. </configuration>
  135. <dependencies>
  136. <dependency>
  137. <groupId>org.apache.hadoop</groupId>
  138. <artifactId>hadoop-assemblies</artifactId>
  139. <version>${project.version}</version>
  140. </dependency>
  141. </dependencies>
  142. <executions>
  143. <execution>
  144. <id>dist</id>
  145. <phase>prepare-package</phase>
  146. <goals>
  147. <goal>single</goal>
  148. </goals>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-dependency-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>deplist</id>
  158. <phase>compile</phase>
  159. <goals>
  160. <goal>list</goal>
  161. </goals>
  162. <configuration>
  163. <outputFile>
  164. ${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt
  165. </outputFile>
  166. </configuration>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </profile>
  173. </profiles>
  174. </project>