pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>io.ray</groupId>
  7. <artifactId>ray-superpom</artifactId>
  8. <version>2.0.0-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <name>Ray Project Parent POM</name>
  11. <description>An open source framework that provides a simple, universal API for building distributed applications.
  12. </description>
  13. <url>https://github.com/ray-project/ray</url>
  14. <licenses>
  15. <license>
  16. <name>The Apache License, Version 2.0</name>
  17. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  18. </license>
  19. </licenses>
  20. <scm>
  21. <url>https://github.com/ray-project/ray</url>
  22. <connection>git@github.com:ray-project/ray.git</connection>
  23. <developerConnection>scm:git:ssh://github.com:ray-project/ray.git</developerConnection>
  24. </scm>
  25. <developers>
  26. <developer>
  27. <organizationUrl>https://ray.io</organizationUrl>
  28. </developer>
  29. </developers>
  30. <distributionManagement>
  31. <snapshotRepository>
  32. <id>ossrh</id>
  33. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  34. </snapshotRepository>
  35. <repository>
  36. <id>ossrh</id>
  37. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  38. </repository>
  39. </distributionManagement>
  40. <repositories>
  41. <repository>
  42. <id>spring</id>
  43. <url>https://repo.spring.io/plugins-release/</url>
  44. </repository>
  45. <repository>
  46. <id>central</id>
  47. <url>https://repo1.maven.org/maven2/</url>
  48. </repository>
  49. </repositories>
  50. <modules>
  51. <module>api</module>
  52. <module>runtime</module>
  53. <module>serve</module>
  54. <module>test</module>
  55. </modules>
  56. <properties>
  57. <java.version>1.8</java.version>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <project.version>2.0.0-SNAPSHOT</project.version>
  60. </properties>
  61. <dependencyManagement>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.testng</groupId>
  65. <artifactId>testng</artifactId>
  66. <version>7.5.1</version>
  67. </dependency>
  68. </dependencies>
  69. </dependencyManagement>
  70. <profiles>
  71. <profile>
  72. <id>release</id>
  73. <activation>
  74. <property>
  75. <name>release</name>
  76. <value>true</value>
  77. </property>
  78. </activation>
  79. <properties>
  80. <output.directory>${basedir}</output.directory>
  81. </properties>
  82. <build>
  83. <plugins>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-gpg-plugin</artifactId>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-javadoc-plugin</artifactId>
  91. </plugin>
  92. </plugins>
  93. </build>
  94. </profile>
  95. </profiles>
  96. <build>
  97. <pluginManagement>
  98. <plugins>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-compiler-plugin</artifactId>
  102. <version>3.6.1</version>
  103. <configuration>
  104. <source>${java.version}</source>
  105. <target>${java.version}</target>
  106. <encoding>${project.build.sourceEncoding}</encoding>
  107. <compilerArgument>-parameters</compilerArgument>
  108. <testCompilerArgument>-parameters</testCompilerArgument>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-source-plugin</artifactId>
  114. <version>3.0.1</version>
  115. <executions>
  116. <execution>
  117. <id>attach-sources</id>
  118. <goals>
  119. <goal>jar</goal>
  120. </goals>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-javadoc-plugin</artifactId>
  127. <version>3.1.0</version>
  128. <executions>
  129. <execution>
  130. <id>attach-javadocs</id>
  131. <goals>
  132. <goal>jar</goal>
  133. </goals>
  134. </execution>
  135. </executions>
  136. <configuration>
  137. <doclint>none</doclint>
  138. </configuration>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-dependency-plugin</artifactId>
  143. <version>2.10</version>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-clean-plugin</artifactId>
  148. <version>3.0.0</version>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.mortbay.jetty</groupId>
  152. <artifactId>maven-jetty-plugin</artifactId>
  153. <version>6.1.26</version>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-assembly-plugin</artifactId>
  158. <version>2.2</version>
  159. </plugin>
  160. <plugin>
  161. <artifactId>maven-deploy-plugin</artifactId>
  162. <version>2.8.2</version>
  163. <executions>
  164. <execution>
  165. <id>deploy</id>
  166. <phase>deploy</phase>
  167. <goals>
  168. <goal>deploy</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-checkstyle-plugin</artifactId>
  176. <version>3.1.0</version>
  177. <dependencies>
  178. <dependency>
  179. <groupId>com.puppycrawl.tools</groupId>
  180. <artifactId>checkstyle</artifactId>
  181. <version>8.19</version>
  182. </dependency>
  183. </dependencies>
  184. <executions>
  185. <execution>
  186. <id>validate</id>
  187. <phase>validate</phase>
  188. <goals>
  189. <goal>check</goal>
  190. </goals>
  191. </execution>
  192. </executions>
  193. <configuration>
  194. <configLocation>checkstyle.xml</configLocation>
  195. <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
  196. <encoding>UTF-8</encoding>
  197. <consoleOutput>true</consoleOutput>
  198. <failsOnError>true</failsOnError>
  199. <failOnViolation>true</failOnViolation>
  200. <violationSeverity>warning</violationSeverity>
  201. <outputFile>${project.build.directory}/checkstyle-errors.xml</outputFile>
  202. <linkXRef>false</linkXRef>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-gpg-plugin</artifactId>
  208. <version>1.6</version>
  209. <executions>
  210. <execution>
  211. <id>sign-artifacts</id>
  212. <goals>
  213. <goal>sign</goal>
  214. </goals>
  215. <configuration>
  216. <!-- Prevent `gpg` from using pinentry programs -->
  217. <gpgArguments>
  218. <arg>--pinentry-mode</arg>
  219. <arg>loopback</arg>
  220. </gpgArguments>
  221. </configuration>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. <plugin>
  226. <groupId>com.diffplug.spotless</groupId>
  227. <artifactId>spotless-maven-plugin</artifactId>
  228. <version>2.5.0</version>
  229. <configuration>
  230. <java>
  231. <excludes>
  232. <exclude>**/RayCall.java</exclude>
  233. <exclude>**/ActorCall.java</exclude>
  234. <exclude>**/Call.java</exclude>
  235. <exclude>**/ActorCall.java</exclude>
  236. <exclude>**/PyActorCall.java</exclude>
  237. <exclude>**/runtime/generated/**/*.*</exclude>
  238. <exclude>**/serve/generated/**/*.*</exclude>
  239. </excludes>
  240. <googleJavaFormat>
  241. <version>1.7</version>
  242. <style>GOOGLE</style>
  243. </googleJavaFormat>
  244. </java>
  245. </configuration>
  246. </plugin>
  247. </plugins>
  248. </pluginManagement>
  249. <plugins>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-checkstyle-plugin</artifactId>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-source-plugin</artifactId>
  257. </plugin>
  258. <plugin>
  259. <groupId>com.diffplug.spotless</groupId>
  260. <artifactId>spotless-maven-plugin</artifactId>
  261. </plugin>
  262. </plugins>
  263. </build>
  264. </project>