pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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>3.5.0-SNAPSHOT</version>
  29. <relativePath>../../hadoop-project</relativePath>
  30. </parent>
  31. <artifactId>hadoop-resourceestimator</artifactId>
  32. <name>Apache Hadoop Resource Estimator Service</name>
  33. <packaging>jar</packaging>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.google.code.gson</groupId>
  37. <artifactId>gson</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.ojalgo</groupId>
  41. <artifactId>ojalgo</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-common</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-yarn-common</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-yarn-api</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.hadoop</groupId>
  57. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.slf4j</groupId>
  61. <artifactId>slf4j-api</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>javax.inject</groupId>
  65. <artifactId>javax.inject</artifactId>
  66. <version>1</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  70. <artifactId>jersey-test-framework-grizzly2</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>javax.servlet</groupId>
  75. <artifactId>javax.servlet-api</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.sun.jersey</groupId>
  79. <artifactId>jersey-server</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.github.pjfanning</groupId>
  83. <artifactId>jersey-json</artifactId>
  84. <exclusions>
  85. <exclusion>
  86. <groupId>com.fasterxml.jackson.core</groupId>
  87. <artifactId>jackson-core</artifactId>
  88. </exclusion>
  89. <exclusion>
  90. <groupId>com.fasterxml.jackson.core</groupId>
  91. <artifactId>jackson-databind</artifactId>
  92. </exclusion>
  93. <exclusion>
  94. <groupId>com.fasterxml.jackson.jaxrs</groupId>
  95. <artifactId>jackson-jaxrs-json-provider</artifactId>
  96. </exclusion>
  97. <exclusion>
  98. <groupId>org.codehaus.jettison</groupId>
  99. <artifactId>jettison</artifactId>
  100. </exclusion>
  101. </exclusions>
  102. </dependency>
  103. <dependency>
  104. <groupId>junit</groupId>
  105. <artifactId>junit</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. </dependencies>
  109. <build>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.rat</groupId>
  113. <artifactId>apache-rat-plugin</artifactId>
  114. <configuration>
  115. <excludes>
  116. <exclude>README.md</exclude>
  117. <exclude>**/*.txt</exclude>
  118. </excludes>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-checkstyle-plugin</artifactId>
  124. <configuration>
  125. <configLocation>src/config/checkstyle.xml</configLocation>
  126. </configuration>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. <profiles>
  131. <profile>
  132. <id>dist</id>
  133. <activation>
  134. <activeByDefault>false</activeByDefault>
  135. </activation>
  136. <build>
  137. <plugins>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-assembly-plugin</artifactId>
  141. <configuration>
  142. <appendAssemblyId>false</appendAssemblyId>
  143. <attach>false</attach>
  144. <finalName>
  145. ${project.artifactId}-${project.version}
  146. </finalName>
  147. <descriptorRefs>
  148. <descriptorRef>hadoop-resourceestimator
  149. </descriptorRef>
  150. </descriptorRefs>
  151. </configuration>
  152. <dependencies>
  153. <dependency>
  154. <groupId>org.apache.hadoop</groupId>
  155. <artifactId>hadoop-assemblies</artifactId>
  156. <version>${project.version}</version>
  157. </dependency>
  158. </dependencies>
  159. <executions>
  160. <execution>
  161. <id>dist</id>
  162. <phase>prepare-package</phase>
  163. <goals>
  164. <goal>single</goal>
  165. </goals>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-dependency-plugin</artifactId>
  172. <executions>
  173. <execution>
  174. <id>deplist</id>
  175. <phase>compile</phase>
  176. <goals>
  177. <goal>list</goal>
  178. </goals>
  179. <configuration>
  180. <outputFile>
  181. ${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt
  182. </outputFile>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. </plugins>
  188. </build>
  189. </profile>
  190. </profiles>
  191. </project>