pom.xml 6.8 KB

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