pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <?xml version="1.0"?>
  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
  16. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <parent>
  18. <artifactId>hadoop-yarn-server</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.4.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-server-common</artifactId>
  24. <version>3.4.0-SNAPSHOT</version>
  25. <name>Apache Hadoop YARN Server Common</name>
  26. <properties>
  27. <!-- Needed for generating FindBugs warnings using parent pom -->
  28. <yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
  29. <should.run.jdiff>true</should.run.jdiff>
  30. <dev-support.relative.dir>../../dev-support</dev-support.relative.dir>
  31. </properties>
  32. <dependencies>
  33. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  34. <dependency>
  35. <groupId>org.apache.hadoop</groupId>
  36. <artifactId>hadoop-common</artifactId>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-common</artifactId>
  43. <type>test-jar</type>
  44. <scope>test</scope>
  45. </dependency>
  46. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  47. <dependency>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-yarn-api</artifactId>
  50. </dependency>
  51. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  52. <dependency>
  53. <groupId>org.apache.hadoop</groupId>
  54. <artifactId>hadoop-yarn-common</artifactId>
  55. </dependency>
  56. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-yarn-common</artifactId>
  60. <type>test-jar</type>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-registry</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop.thirdparty</groupId>
  69. <artifactId>hadoop-shaded-guava</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.bouncycastle</groupId>
  73. <artifactId>bcprov-jdk15on</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  77. <dependency>
  78. <groupId>org.apache.hadoop</groupId>
  79. <artifactId>hadoop-annotations</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.google.protobuf</groupId>
  83. <artifactId>protobuf-java</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>junit</groupId>
  87. <artifactId>junit</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.mockito</groupId>
  92. <artifactId>mockito-core</artifactId>
  93. <scope>test</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.assertj</groupId>
  97. <artifactId>assertj-core</artifactId>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.zookeeper</groupId>
  102. <artifactId>zookeeper</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>io.dropwizard.metrics</groupId>
  106. <artifactId>metrics-core</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.xerial.snappy</groupId>
  110. <artifactId>snappy-java</artifactId>
  111. <scope>provided</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>${leveldbjni.group}</groupId>
  115. <artifactId>leveldbjni-all</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.apache.geronimo.specs</groupId>
  119. <artifactId>geronimo-jcache_1.0_spec</artifactId>
  120. <exclusions>
  121. <exclusion>
  122. <groupId>org.osgi</groupId>
  123. <artifactId>org.osgi.core</artifactId>
  124. </exclusion>
  125. </exclusions>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.ehcache</groupId>
  129. <artifactId>ehcache</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.zaxxer</groupId>
  133. <artifactId>HikariCP</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.hsqldb</groupId>
  137. <artifactId>hsqldb</artifactId>
  138. <scope>test</scope>
  139. <classifier>jdk8</classifier>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.microsoft.sqlserver</groupId>
  143. <artifactId>mssql-jdbc</artifactId>
  144. <scope>runtime</scope>
  145. <exclusions>
  146. <exclusion>
  147. <groupId>com.microsoft.azure</groupId>
  148. <artifactId>azure-keyvault</artifactId>
  149. </exclusion>
  150. </exclusions>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.apache.curator</groupId>
  154. <artifactId>curator-test</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. </dependencies>
  158. <build>
  159. <plugins>
  160. <plugin>
  161. <artifactId>maven-antrun-plugin</artifactId>
  162. <executions>
  163. <execution>
  164. <id>copy-site</id>
  165. <phase>pre-site</phase>
  166. <goals>
  167. <goal>run</goal>
  168. </goals>
  169. <configuration>
  170. <target>
  171. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  172. </target>
  173. </configuration>
  174. </execution>
  175. <execution>
  176. <id>copy-sql</id>
  177. <phase>test</phase>
  178. <goals>
  179. <goal>run</goal>
  180. </goals>
  181. <configuration>
  182. <target>
  183. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  184. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  185. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  186. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  187. </target>
  188. </configuration>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. <plugin>
  193. <groupId>org.xolstice.maven.plugins</groupId>
  194. <artifactId>protobuf-maven-plugin</artifactId>
  195. <executions>
  196. <execution>
  197. <id>src-compile-protoc</id>
  198. <configuration>
  199. <skip>false</skip>
  200. <additionalProtoPathElements>
  201. <additionalProtoPathElement>
  202. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  203. </additionalProtoPathElement>
  204. <additionalProtoPathElement>
  205. ${basedir}/../../hadoop-yarn-api/src/main/proto
  206. </additionalProtoPathElement>
  207. <additionalProtoPathElement>
  208. ${basedir}/../../hadoop-yarn-common/src/main/proto
  209. </additionalProtoPathElement>
  210. </additionalProtoPathElements>
  211. </configuration>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. <plugin>
  216. <groupId>com.google.code.maven-replacer-plugin</groupId>
  217. <artifactId>replacer</artifactId>
  218. <executions>
  219. <execution>
  220. <id>replace-generated-sources</id>
  221. <configuration>
  222. <skip>false</skip>
  223. </configuration>
  224. </execution>
  225. <execution>
  226. <id>replace-sources</id>
  227. <configuration>
  228. <skip>false</skip>
  229. </configuration>
  230. </execution>
  231. <execution>
  232. <id>replace-test-sources</id>
  233. <configuration>
  234. <skip>false</skip>
  235. </configuration>
  236. </execution>
  237. </executions>
  238. </plugin>
  239. <plugin>
  240. <artifactId>maven-clean-plugin</artifactId>
  241. <configuration>
  242. <filesets>
  243. <fileset>
  244. <directory>src/site/resources</directory>
  245. <includes>
  246. <include>configuration.xsl</include>
  247. </includes>
  248. <followSymlinks>false</followSymlinks>
  249. </fileset>
  250. </filesets>
  251. </configuration>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.apache.rat</groupId>
  255. <artifactId>apache-rat-plugin</artifactId>
  256. <configuration>
  257. <excludes>
  258. <exclude>src/test/resources/nodes</exclude>
  259. <exclude>src/test/resources/nodes-malformed</exclude>
  260. </excludes>
  261. </configuration>
  262. </plugin>
  263. <plugin>
  264. <artifactId>maven-jar-plugin</artifactId>
  265. <executions>
  266. <execution>
  267. <goals>
  268. <goal>test-jar</goal>
  269. </goals>
  270. <phase>test-compile</phase>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. </plugins>
  275. </build>
  276. </project>