pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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>3.0.0</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. </modules>
  45. <properties>
  46. <java.version>1.8</java.version>
  47. <maven.compiler.source>1.8</maven.compiler.source>
  48. <maven.compiler.target>1.8</maven.compiler.target>
  49. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  50. <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
  51. <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
  52. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  53. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  54. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  55. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  56. <lombok.version>1.18.12</lombok.version>
  57. </properties>
  58. <dependencies>
  59. <!-- lombok -->
  60. <dependency>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. <version>${lombok.version}</version>
  64. <scope>provided</scope>
  65. </dependency>
  66. </dependencies>
  67. <profiles>
  68. <!-- 发布到中央仓库,需要使用 mvn xxx -Prelease 启用 -->
  69. <profile>
  70. <id>release</id>
  71. <build>
  72. <plugins>
  73. <!-- 编译插件 -->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-compiler-plugin</artifactId>
  77. <version>${maven-compiler-plugin.version}</version>
  78. <configuration>
  79. <source>${java.version}</source>
  80. <target>${java.version}</target>
  81. <testSource>${java.version}</testSource>
  82. <testTarget>${java.version}</testTarget>
  83. </configuration>
  84. </plugin>
  85. <!-- Package source codes -->
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-source-plugin</artifactId>
  89. <version>${maven-source-plugin.version}</version>
  90. <executions>
  91. <execution>
  92. <phase>package</phase>
  93. <goals>
  94. <goal>jar-no-fork</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <!-- 编辑 MANIFEST.MF -->
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-jar-plugin</artifactId>
  103. <version>${maven-jar-plugin.version}</version>
  104. <configuration>
  105. <archive>
  106. <manifestEntries>
  107. <Implementation-Title>${project.artifactId}</Implementation-Title>
  108. <Implementation-Version>${project.version}</Implementation-Version>
  109. </manifestEntries>
  110. </archive>
  111. </configuration>
  112. </plugin>
  113. <!-- Java Doc -->
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-javadoc-plugin</artifactId>
  117. <version>${maven-javadoc-plugin.version}</version>
  118. <configuration>
  119. <!-- Prevent JavaDoc error from affecting building project. -->
  120. <failOnError>false</failOnError>
  121. <!-- Non-strict mode -->
  122. <additionalJOption>-Xdoclint:none</additionalJOption>
  123. </configuration>
  124. <executions>
  125. <execution>
  126. <phase>package</phase>
  127. <goals>
  128. <goal>jar</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <!-- GPG -->
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-gpg-plugin</artifactId>
  137. <version>${maven-gpg-plugin.version}</version>
  138. <executions>
  139. <execution>
  140. <phase>verify</phase>
  141. <goals>
  142. <goal>sign</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. <distributionManagement>
  150. <snapshotRepository>
  151. <id>ossrh</id>
  152. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
  153. </snapshotRepository>
  154. <repository>
  155. <id>ossrh</id>
  156. <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  157. </repository>
  158. </distributionManagement>
  159. </profile>
  160. <!-- Local profile -->
  161. <profile>
  162. <id>dev</id>
  163. <activation>
  164. <activeByDefault>true</activeByDefault>
  165. </activation>
  166. <build>
  167. <plugins>
  168. <!-- Maven compiler plugin -->
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-compiler-plugin</artifactId>
  172. <version>${maven-compiler-plugin.version}</version>
  173. <configuration>
  174. <source>${java.version}</source>
  175. <target>${java.version}</target>
  176. <testSource>${java.version}</testSource>
  177. <testTarget>${java.version}</testTarget>
  178. </configuration>
  179. </plugin>
  180. <!-- Edit MANIFEST.MF -->
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-jar-plugin</artifactId>
  184. <version>${maven-jar-plugin.version}</version>
  185. <configuration>
  186. <archive>
  187. <manifestEntries>
  188. <Implementation-Title>${project.artifactId}</Implementation-Title>
  189. <Implementation-Version>${project.version}</Implementation-Version>
  190. </manifestEntries>
  191. </archive>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </profile>
  197. </profiles>
  198. </project>