pom.xml 8.7 KB

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