pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. <projetct.version>2.0.0-SNAPSHOT</projetct.version>
  60. <projetct.version>2.0.0-SNAPSHOT</projetct.version>
  61. </properties>
  62. <dependencyManagement>
  63. <dependencies>
  64. <dependency>
  65. <groupId>org.testng</groupId>
  66. <artifactId>testng</artifactId>
  67. <version>7.3.0</version>
  68. <exclusions>
  69. <exclusion>
  70. <groupId>org.yaml</groupId>
  71. <artifactId>snakeyaml</artifactId>
  72. </exclusion>
  73. </exclusions>
  74. </dependency>
  75. </dependencies>
  76. </dependencyManagement>
  77. <profiles>
  78. <profile>
  79. <id>release</id>
  80. <activation>
  81. <property>
  82. <name>release</name>
  83. <value>true</value>
  84. </property>
  85. </activation>
  86. <properties>
  87. <output.directory>${basedir}</output.directory>
  88. </properties>
  89. <build>
  90. <plugins>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-gpg-plugin</artifactId>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-javadoc-plugin</artifactId>
  98. </plugin>
  99. </plugins>
  100. </build>
  101. </profile>
  102. </profiles>
  103. <build>
  104. <pluginManagement>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-compiler-plugin</artifactId>
  109. <version>3.6.1</version>
  110. <configuration>
  111. <source>${java.version}</source>
  112. <target>${java.version}</target>
  113. <encoding>${project.build.sourceEncoding}</encoding>
  114. <compilerArgument>-parameters</compilerArgument>
  115. <testCompilerArgument>-parameters</testCompilerArgument>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-source-plugin</artifactId>
  121. <version>3.0.1</version>
  122. <executions>
  123. <execution>
  124. <id>attach-sources</id>
  125. <goals>
  126. <goal>jar</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-javadoc-plugin</artifactId>
  134. <version>3.1.0</version>
  135. <executions>
  136. <execution>
  137. <id>attach-javadocs</id>
  138. <goals>
  139. <goal>jar</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. <configuration>
  144. <doclint>none</doclint>
  145. </configuration>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-dependency-plugin</artifactId>
  150. <version>2.10</version>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-clean-plugin</artifactId>
  155. <version>3.0.0</version>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.mortbay.jetty</groupId>
  159. <artifactId>maven-jetty-plugin</artifactId>
  160. <version>6.1.26</version>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-assembly-plugin</artifactId>
  165. <version>2.2</version>
  166. </plugin>
  167. <plugin>
  168. <artifactId>maven-deploy-plugin</artifactId>
  169. <version>2.8.2</version>
  170. <executions>
  171. <execution>
  172. <id>deploy</id>
  173. <phase>deploy</phase>
  174. <goals>
  175. <goal>deploy</goal>
  176. </goals>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-checkstyle-plugin</artifactId>
  183. <version>3.1.0</version>
  184. <dependencies>
  185. <dependency>
  186. <groupId>com.puppycrawl.tools</groupId>
  187. <artifactId>checkstyle</artifactId>
  188. <version>8.19</version>
  189. </dependency>
  190. </dependencies>
  191. <executions>
  192. <execution>
  193. <id>validate</id>
  194. <phase>validate</phase>
  195. <goals>
  196. <goal>check</goal>
  197. </goals>
  198. </execution>
  199. </executions>
  200. <configuration>
  201. <configLocation>checkstyle.xml</configLocation>
  202. <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
  203. <encoding>UTF-8</encoding>
  204. <consoleOutput>true</consoleOutput>
  205. <failsOnError>true</failsOnError>
  206. <failOnViolation>true</failOnViolation>
  207. <violationSeverity>warning</violationSeverity>
  208. <outputFile>${project.build.directory}/checkstyle-errors.xml</outputFile>
  209. <linkXRef>false</linkXRef>
  210. </configuration>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-gpg-plugin</artifactId>
  215. <version>1.6</version>
  216. <executions>
  217. <execution>
  218. <id>sign-artifacts</id>
  219. <goals>
  220. <goal>sign</goal>
  221. </goals>
  222. <configuration>
  223. <!-- Prevent `gpg` from using pinentry programs -->
  224. <gpgArguments>
  225. <arg>--pinentry-mode</arg>
  226. <arg>loopback</arg>
  227. </gpgArguments>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <groupId>com.diffplug.spotless</groupId>
  234. <artifactId>spotless-maven-plugin</artifactId>
  235. <version>2.5.0</version>
  236. <configuration>
  237. <java>
  238. <excludes>
  239. <exclude>**/RayCall.java</exclude>
  240. <exclude>**/ActorCall.java</exclude>
  241. <exclude>**/PyActorCall.java</exclude>
  242. <exclude>**/runtime/generated/**/*.*</exclude>
  243. <exclude>**/serve/generated/**/*.*</exclude>
  244. </excludes>
  245. <googleJavaFormat>
  246. <version>1.7</version>
  247. <style>GOOGLE</style>
  248. </googleJavaFormat>
  249. </java>
  250. </configuration>
  251. </plugin>
  252. </plugins>
  253. </pluginManagement>
  254. <plugins>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-checkstyle-plugin</artifactId>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-source-plugin</artifactId>
  262. </plugin>
  263. <plugin>
  264. <groupId>com.diffplug.spotless</groupId>
  265. <artifactId>spotless-maven-plugin</artifactId>
  266. </plugin>
  267. </plugins>
  268. </build>
  269. </project>