pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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>tech.powerjob</groupId>
  7. <artifactId>powerjob</artifactId>
  8. <version>4.3.9</version>
  9. <packaging>pom</packaging>
  10. <name>powerjob</name>
  11. <url>http://www.powerjob.tech</url>
  12. <description>Enterprise job scheduling middleware with distributed computing ability.</description>
  13. <licenses>
  14. <license>
  15. <name>Apache License, Version 2.0</name>
  16. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  17. <distribution>repo</distribution>
  18. </license>
  19. </licenses>
  20. <scm>
  21. <url>https://github.com/PowerJob/PowerJob</url>
  22. <connection>https://github.com/PowerJob/PowerJob.git</connection>
  23. </scm>
  24. <developers>
  25. <developer>
  26. <name>tengjiqi</name>
  27. <id>tengjiqi</id>
  28. <email>tengjiqi@gmail.com</email>
  29. <roles>
  30. <role>Developer</role>
  31. </roles>
  32. <timezone>+8</timezone>
  33. </developer>
  34. </developers>
  35. <modules>
  36. <module>powerjob-worker</module>
  37. <module>powerjob-server</module>
  38. <module>powerjob-common</module>
  39. <module>powerjob-client</module>
  40. <module>powerjob-worker-agent</module>
  41. <module>powerjob-worker-spring-boot-starter</module>
  42. <module>powerjob-worker-samples</module>
  43. <module>powerjob-official-processors</module>
  44. <module>powerjob-remote</module>
  45. </modules>
  46. <properties>
  47. <java.version>1.8</java.version>
  48. <maven.compiler.source>1.8</maven.compiler.source>
  49. <maven.compiler.target>1.8</maven.compiler.target>
  50. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  51. <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
  52. <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
  53. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  54. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  55. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  56. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  57. <lombok.version>1.18.12</lombok.version>
  58. </properties>
  59. <dependencies>
  60. <!-- lombok -->
  61. <dependency>
  62. <groupId>org.projectlombok</groupId>
  63. <artifactId>lombok</artifactId>
  64. <version>${lombok.version}</version>
  65. <scope>provided</scope>
  66. </dependency>
  67. </dependencies>
  68. <profiles>
  69. <!-- 发布到中央仓库,需要使用 mvn xxx -Prelease 启用 -->
  70. <profile>
  71. <id>release</id>
  72. <build>
  73. <plugins>
  74. <!-- 编译插件 -->
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-compiler-plugin</artifactId>
  78. <version>${maven-compiler-plugin.version}</version>
  79. <configuration>
  80. <source>${java.version}</source>
  81. <target>${java.version}</target>
  82. <testSource>${java.version}</testSource>
  83. <testTarget>${java.version}</testTarget>
  84. </configuration>
  85. </plugin>
  86. <!-- Package source codes -->
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-source-plugin</artifactId>
  90. <version>${maven-source-plugin.version}</version>
  91. <executions>
  92. <execution>
  93. <phase>package</phase>
  94. <goals>
  95. <goal>jar-no-fork</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <!-- 编辑 MANIFEST.MF -->
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-jar-plugin</artifactId>
  104. <version>${maven-jar-plugin.version}</version>
  105. <configuration>
  106. <archive>
  107. <manifestEntries>
  108. <Implementation-Title>${project.artifactId}</Implementation-Title>
  109. <Implementation-Version>${project.version}</Implementation-Version>
  110. </manifestEntries>
  111. </archive>
  112. </configuration>
  113. </plugin>
  114. <!-- Java Doc -->
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-javadoc-plugin</artifactId>
  118. <version>${maven-javadoc-plugin.version}</version>
  119. <configuration>
  120. <!-- Prevent JavaDoc error from affecting building project. -->
  121. <failOnError>false</failOnError>
  122. <!-- Non-strict mode -->
  123. <additionalJOption>-Xdoclint:none</additionalJOption>
  124. </configuration>
  125. <executions>
  126. <execution>
  127. <phase>package</phase>
  128. <goals>
  129. <goal>jar</goal>
  130. </goals>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. <!-- GPG -->
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-gpg-plugin</artifactId>
  138. <version>${maven-gpg-plugin.version}</version>
  139. <executions>
  140. <execution>
  141. <phase>verify</phase>
  142. <goals>
  143. <goal>sign</goal>
  144. </goals>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.sonatype.plugins</groupId>
  150. <artifactId>nexus-staging-maven-plugin</artifactId>
  151. <version>1.6.7</version>
  152. <extensions>true</extensions>
  153. <configuration>
  154. <serverId>ossrh</serverId>
  155. <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
  156. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  157. </configuration>
  158. </plugin>
  159. </plugins>
  160. </build>
  161. <distributionManagement>
  162. <snapshotRepository>
  163. <id>ossrh</id>
  164. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  165. </snapshotRepository>
  166. <repository>
  167. <id>ossrh</id>
  168. <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  169. </repository>
  170. </distributionManagement>
  171. </profile>
  172. <!-- Local profile -->
  173. <profile>
  174. <id>dev</id>
  175. <activation>
  176. <activeByDefault>true</activeByDefault>
  177. </activation>
  178. <build>
  179. <plugins>
  180. <!-- Maven compiler plugin -->
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-compiler-plugin</artifactId>
  184. <version>${maven-compiler-plugin.version}</version>
  185. <configuration>
  186. <source>${java.version}</source>
  187. <target>${java.version}</target>
  188. <testSource>${java.version}</testSource>
  189. <testTarget>${java.version}</testTarget>
  190. </configuration>
  191. </plugin>
  192. <!-- Edit MANIFEST.MF -->
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-jar-plugin</artifactId>
  196. <version>${maven-jar-plugin.version}</version>
  197. <configuration>
  198. <archive>
  199. <manifestEntries>
  200. <Implementation-Title>${project.artifactId}</Implementation-Title>
  201. <Implementation-Version>${project.version}</Implementation-Version>
  202. </manifestEntries>
  203. </archive>
  204. </configuration>
  205. </plugin>
  206. </plugins>
  207. </build>
  208. </profile>
  209. </profiles>
  210. </project>