pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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.4.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. </exclusions>
  98. </dependency>
  99. <dependency>
  100. <groupId>junit</groupId>
  101. <artifactId>junit</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. </dependencies>
  105. <build>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.apache.rat</groupId>
  109. <artifactId>apache-rat-plugin</artifactId>
  110. <configuration>
  111. <excludes>
  112. <exclude>README.md</exclude>
  113. <exclude>**/*.txt</exclude>
  114. </excludes>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-checkstyle-plugin</artifactId>
  120. <configuration>
  121. <configLocation>src/config/checkstyle.xml</configLocation>
  122. </configuration>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. <profiles>
  127. <profile>
  128. <id>dist</id>
  129. <activation>
  130. <activeByDefault>false</activeByDefault>
  131. </activation>
  132. <build>
  133. <plugins>
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-assembly-plugin</artifactId>
  137. <configuration>
  138. <appendAssemblyId>false</appendAssemblyId>
  139. <attach>false</attach>
  140. <finalName>
  141. ${project.artifactId}-${project.version}
  142. </finalName>
  143. <descriptorRefs>
  144. <descriptorRef>hadoop-resourceestimator
  145. </descriptorRef>
  146. </descriptorRefs>
  147. </configuration>
  148. <dependencies>
  149. <dependency>
  150. <groupId>org.apache.hadoop</groupId>
  151. <artifactId>hadoop-assemblies</artifactId>
  152. <version>${project.version}</version>
  153. </dependency>
  154. </dependencies>
  155. <executions>
  156. <execution>
  157. <id>dist</id>
  158. <phase>prepare-package</phase>
  159. <goals>
  160. <goal>single</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-dependency-plugin</artifactId>
  168. <executions>
  169. <execution>
  170. <id>deplist</id>
  171. <phase>compile</phase>
  172. <goals>
  173. <goal>list</goal>
  174. </goals>
  175. <configuration>
  176. <outputFile>
  177. ${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-builtin.txt
  178. </outputFile>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </profile>
  186. </profiles>
  187. </project>