pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. The MIT License (MIT)
  4. Copyright (c) 2019 Code Technology Studio
  5. Permission is hereby granted, free of charge, to any person obtaining a copy of
  6. this software and associated documentation files (the "Software"), to deal in
  7. the Software without restriction, including without limitation the rights to
  8. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  9. the Software, and to permit persons to whom the Software is furnished to do so,
  10. subject to the following conditions:
  11. The above copyright notice and this permission notice shall be included in all
  12. copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  15. FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  16. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  17. IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  18. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  23. <modelVersion>4.0.0</modelVersion>
  24. <packaging>pom</packaging>
  25. <modules>
  26. <module>modules/agent</module>
  27. <module>modules/server</module>
  28. <module>modules/common</module>
  29. <module>modules/sub-plugin</module>
  30. <module>modules/agent-transport</module>
  31. <module>modules/storage-module</module>
  32. <module>modules/updater</module>
  33. </modules>
  34. <parent>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-parent</artifactId>
  37. <version>2.7.14</version>
  38. <relativePath/>
  39. </parent>
  40. <groupId>org.dromara.jpom</groupId>
  41. <artifactId>jpom-parent</artifactId>
  42. <name>Jpom (Java Project Online Manage)</name>
  43. <description>
  44. 简而轻的低侵入式在线构建、自动部署、日常运维、项目监控软件
  45. </description>
  46. <inceptionYear>2017</inceptionYear>
  47. <version>2.10.42.4</version>
  48. <url>https://gitee.com/dromara/Jpom</url>
  49. <properties>
  50. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  51. <java.version>1.8</java.version>
  52. <!--当前程序兼容 jpom 最新版本号-->
  53. <jpom-min-version>2.10.0</jpom-min-version>
  54. <!-- 跳过测试 -->
  55. <skipTests>true</skipTests>
  56. <maven.test.skip>true</maven.test.skip>
  57. <!-- <maven.javadoc.skip>true</maven.javadoc.skip>-->
  58. <hutool.version>5.8.21</hutool.version>
  59. <fastjson2.version>2.0.39</fastjson2.version>
  60. <fastjson-version>2.0.39</fastjson-version>
  61. <jna-version>5.12.1</jna-version>
  62. </properties>
  63. <dependencies>
  64. <dependency>
  65. <groupId>junit</groupId>
  66. <artifactId>junit</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <!-- 性能测试 -->
  70. <dependency>
  71. <groupId>org.databene</groupId>
  72. <artifactId>contiperf</artifactId>
  73. <version>2.3.4</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. <scope>provided</scope>
  80. </dependency>
  81. </dependencies>
  82. <dependencyManagement>
  83. <dependencies>
  84. <dependency>
  85. <groupId>cn.hutool</groupId>
  86. <artifactId>hutool-bom</artifactId>
  87. <version>${hutool.version}</version>
  88. <type>pom</type>
  89. <!-- 注意这里是import -->
  90. <scope>import</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.alibaba.fastjson2</groupId>
  94. <artifactId>fastjson2</artifactId>
  95. <version>${fastjson2.version}</version>
  96. </dependency>
  97. </dependencies>
  98. </dependencyManagement>
  99. <build>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-compiler-plugin</artifactId>
  104. <version>3.8.0</version>
  105. <configuration>
  106. <source>${java.version}</source>
  107. <target>${java.version}</target>
  108. <encoding>${project.build.sourceEncoding}</encoding>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>com.mycila</groupId>
  113. <artifactId>license-maven-plugin</artifactId>
  114. <version>4.1</version>
  115. <executions>
  116. <execution>
  117. <phase>generate-sources</phase>
  118. <goals>
  119. <goal>remove</goal>
  120. <goal>format</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. <configuration>
  125. <quiet>true</quiet>
  126. <!--HEADER文件-->
  127. <header>LICENSE</header>
  128. <includes>
  129. <!--取消默认排除-->
  130. <include>**/node/**</include>
  131. </includes>
  132. <!--排除文件-->
  133. <excludes>
  134. <!-- https://github.com/mathieucarbou/license-maven-plugin/blob/master/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/Default.java-->
  135. <exclude>docs/**</exclude>
  136. <exclude>web-vue/**</exclude>
  137. <exclude>web-vue3/**</exclude>
  138. <exclude>**/*.yml</exclude>
  139. <exclude>**/*.md</exclude>
  140. <exclude>**/*.txt</exclude>
  141. </excludes>
  142. <!--严格检查-->
  143. <strictCheck>true</strictCheck>
  144. <mapping>
  145. <java>SLASHSTAR_STYLE</java>
  146. </mapping>
  147. </configuration>
  148. </plugin>
  149. </plugins>
  150. </build>
  151. <profiles>
  152. <profile>
  153. <id>release</id>
  154. <distributionManagement>
  155. <snapshotRepository>
  156. <id>maven-repo</id>
  157. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  158. </snapshotRepository>
  159. <repository>
  160. <id>maven-repo</id>
  161. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  162. </repository>
  163. </distributionManagement>
  164. <build>
  165. <plugins>
  166. <!-- Javadoc -->
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-javadoc-plugin</artifactId>
  170. <version>3.0.0</version>
  171. <executions>
  172. <execution>
  173. <id>attach-javadoc</id>
  174. <phase>package</phase>
  175. <goals>
  176. <goal>jar</goal>
  177. </goals>
  178. <configuration>
  179. <!-- <additionalparam>-Xdoclint:none</additionalparam>-->
  180. <additionalOptions>-Xdoclint:none</additionalOptions>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. <configuration>
  185. <tags>
  186. <tag>
  187. <name>date</name>
  188. <placement>a</placement>
  189. <head>创建时间</head>
  190. </tag>
  191. </tags>
  192. </configuration>
  193. </plugin>
  194. <!-- source插件,打包源码 -->
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-source-plugin</artifactId>
  198. <version>2.4</version>
  199. <executions>
  200. <execution>
  201. <id>attach-sources</id>
  202. <goals>
  203. <goal>jar</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <!-- GPG -->
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-gpg-plugin</artifactId>
  212. <version>3.0.1</version>
  213. <executions>
  214. <execution>
  215. <id>verify-gpg</id>
  216. <phase>verify</phase>
  217. <goals>
  218. <goal>sign</goal>
  219. </goals>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.sonatype.plugins</groupId>
  225. <artifactId>nexus-staging-maven-plugin</artifactId>
  226. <version>1.6.8</version>
  227. <extensions>true</extensions>
  228. <configuration>
  229. <serverId>sonatype-nexus-staging</serverId>
  230. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  231. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  232. </configuration>
  233. </plugin>
  234. </plugins>
  235. </build>
  236. </profile>
  237. </profiles>
  238. <licenses>
  239. <license>
  240. <name>MIT License</name>
  241. <url>https://opensource.org/licenses/MIT</url>
  242. <distribution>repo</distribution>
  243. </license>
  244. </licenses>
  245. </project>