pom.xml 7.0 KB

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