pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?xml version="1.0" encoding="UTF-8"?>
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <parent>
  17. <artifactId>hadoop-yarn</artifactId>
  18. <groupId>org.apache.hadoop</groupId>
  19. <version>3.4.0-SNAPSHOT</version>
  20. </parent>
  21. <modelVersion>4.0.0</modelVersion>
  22. <artifactId>hadoop-yarn-csi</artifactId>
  23. <name>Apache Hadoop YARN CSI</name>
  24. <packaging>jar</packaging>
  25. <properties>
  26. <protobuf.version>3.6.1</protobuf.version>
  27. <guava.version>20.0</guava.version>
  28. <grpc.version>1.26.0</grpc.version>
  29. <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>com.google.guava</groupId>
  34. <artifactId>guava</artifactId>
  35. <version>${guava.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.google.protobuf</groupId>
  39. <artifactId>protobuf-java</artifactId>
  40. <version>${protobuf.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>io.netty</groupId>
  44. <artifactId>netty-all</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>io.grpc</groupId>
  48. <artifactId>grpc-core</artifactId>
  49. <version>${grpc.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>io.grpc</groupId>
  53. <artifactId>grpc-protobuf</artifactId>
  54. <version>${grpc.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>io.grpc</groupId>
  58. <artifactId>grpc-stub</artifactId>
  59. <version>${grpc.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>io.grpc</groupId>
  63. <artifactId>grpc-netty</artifactId>
  64. <version>${grpc.version}</version>
  65. <exclusions>
  66. <!-- Contained in netty-all. skip -->
  67. <exclusion>
  68. <groupId>io.netty</groupId>
  69. <artifactId>netty-codec-http2</artifactId>
  70. </exclusion>
  71. <!-- Contained in netty-all. skip -->
  72. <exclusion>
  73. <groupId>io.netty</groupId>
  74. <artifactId>netty-handler-proxy</artifactId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>junit</groupId>
  80. <artifactId>junit</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.assertj</groupId>
  84. <artifactId>assertj-core</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.hadoop</groupId>
  89. <artifactId>hadoop-common</artifactId>
  90. <type>test-jar</type>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-common</artifactId>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-yarn-common</artifactId>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.hadoop</groupId>
  105. <artifactId>hadoop-yarn-api</artifactId>
  106. <scope>provided</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>javax.annotation</groupId>
  110. <artifactId>javax.annotation-api</artifactId>
  111. <scope>compile</scope>
  112. </dependency>
  113. </dependencies>
  114. <build>
  115. <extensions>
  116. <extension>
  117. <groupId>kr.motd.maven</groupId>
  118. <artifactId>os-maven-plugin</artifactId>
  119. <version>${os-maven-plugin.version}</version>
  120. </extension>
  121. </extensions>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-dependency-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <phase>package</phase>
  129. <goals>
  130. <goal>copy-dependencies</goal>
  131. </goals>
  132. <configuration>
  133. <includeScope>runtime</includeScope>
  134. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  135. </configuration>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-compiler-plugin</artifactId>
  142. </plugin>
  143. <plugin>
  144. <artifactId>maven-clean-plugin</artifactId>
  145. <configuration>
  146. <filesets>
  147. <fileset>
  148. <directory>target/</directory>
  149. </fileset>
  150. </filesets>
  151. </configuration>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.xolstice.maven.plugins</groupId>
  155. <artifactId>protobuf-maven-plugin</artifactId>
  156. <version>${protobuf-maven-plugin.version}</version>
  157. <configuration>
  158. <protocArtifact>com.google.protobuf:protoc:3.6.1:exe:${os.detected.classifier}</protocArtifact>
  159. <pluginId>grpc-java</pluginId>
  160. <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.26.0:exe:${os.detected.classifier}</pluginArtifact>
  161. </configuration>
  162. <executions>
  163. <execution>
  164. <goals>
  165. <goal>compile</goal>
  166. <goal>compile-custom</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.rat</groupId>
  173. <artifactId>apache-rat-plugin</artifactId>
  174. <configuration>
  175. <excludes>
  176. <exclude>target/generated-sources/**</exclude>
  177. <exclude>target/surefire-reports/**</exclude>
  178. <exclude>target/protoc-dependencies/**</exclude>
  179. </excludes>
  180. </configuration>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-javadoc-plugin</artifactId>
  185. <configuration>
  186. <excludePackageNames>csi.v0</excludePackageNames>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.codehaus.mojo</groupId>
  191. <artifactId>build-helper-maven-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <id>add-source</id>
  195. <phase>generate-sources</phase>
  196. <goals>
  197. <goal>add-source</goal>
  198. </goals>
  199. <configuration>
  200. <sources>
  201. <source>${basedir}/target/generated-sources/protobuf/java</source>
  202. </sources>
  203. </configuration>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. </plugins>
  208. </build>
  209. </project>