pom.xml 8.1 KB

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