1
0

pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2019 Of Him Code Technology Studio
  4. Jpom is licensed under Mulan PSL v2.
  5. You can use this software according to the terms and conditions of the Mulan PSL v2.
  6. You may obtain a copy of Mulan PSL v2 at:
  7. http://license.coscl.org.cn/MulanPSL2
  8. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  9. See the Mulan PSL v2 for more details.
  10. -->
  11. <project xmlns="http://maven.apache.org/POM/4.0.0"
  12. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <packaging>pom</packaging>
  16. <modules>
  17. <module>modules/agent</module>
  18. <module>modules/server</module>
  19. <module>modules/common</module>
  20. <module>modules/sub-plugin</module>
  21. <module>modules/agent-transport</module>
  22. <module>modules/storage-module</module>
  23. </modules>
  24. <parent>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-parent</artifactId>
  27. <version>2.7.18</version>
  28. <relativePath/>
  29. </parent>
  30. <groupId>org.dromara.jpom</groupId>
  31. <artifactId>jpom-parent</artifactId>
  32. <name>Jpom (Java Project Online Manage)</name>
  33. <description>
  34. 简而轻的低侵入式在线构建、自动部署、日常运维、项目监控软件
  35. </description>
  36. <inceptionYear>2017</inceptionYear>
  37. <version>2.11.11</version>
  38. <url>https://gitee.com/dromara/Jpom</url>
  39. <properties>
  40. <spring-framework.version>5.3.39</spring-framework.version>
  41. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  42. <java.version>1.8</java.version>
  43. <!--当前程序兼容 jpom 最新版本号-->
  44. <jpom-min-version>2.10.0</jpom-min-version>
  45. <!-- 跳过测试 -->
  46. <skipTests>true</skipTests>
  47. <maven.test.skip>true</maven.test.skip>
  48. <!-- <maven.javadoc.skip>true</maven.javadoc.skip>-->
  49. <hutool.version>5.8.30</hutool.version>
  50. <fastjson2.version>2.0.53</fastjson2.version>
  51. <fastjson-version>2.0.53</fastjson-version>
  52. <jna-version>5.14.0</jna-version>
  53. <mwiede.jsch-version>0.2.18</mwiede.jsch-version>
  54. <oshi.version>6.4.13</oshi.version>
  55. <tomcat.version>9.0.90</tomcat.version>
  56. <yaml.version>2.2</yaml.version>
  57. <!-- h2 不能直接升级 The write format 2 is smaller than the supported format 3-->
  58. <h2.version>2.1.214</h2.version>
  59. <postgresql.version>42.3.10</postgresql.version>
  60. <logback.version>1.2.13</logback.version>
  61. <mysql.version>8.2.0</mysql.version>
  62. <!-- logback 不能升级
  63. https://github.com/spring-projects/spring-boot/issues/34708
  64. https://github.com/spring-projects/spring-boot/issues/12649
  65. -->
  66. </properties>
  67. <dependencies>
  68. <dependency>
  69. <groupId>junit</groupId>
  70. <artifactId>junit</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <!-- 性能测试 -->
  74. <dependency>
  75. <groupId>org.databene</groupId>
  76. <artifactId>contiperf</artifactId>
  77. <version>2.3.4</version>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.projectlombok</groupId>
  82. <artifactId>lombok</artifactId>
  83. <scope>provided</scope>
  84. </dependency>
  85. </dependencies>
  86. <dependencyManagement>
  87. <dependencies>
  88. <dependency>
  89. <groupId>cn.hutool</groupId>
  90. <artifactId>hutool-bom</artifactId>
  91. <version>${hutool.version}</version>
  92. <type>pom</type>
  93. <!-- 注意这里是import -->
  94. <scope>import</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.alibaba.fastjson2</groupId>
  98. <artifactId>fastjson2</artifactId>
  99. <version>${fastjson2.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.bouncycastle</groupId>
  103. <artifactId>bcprov-jdk18on</artifactId>
  104. <version>1.78</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.github.mwiede</groupId>
  108. <artifactId>jsch</artifactId>
  109. <version>${mwiede.jsch-version}</version>
  110. </dependency>
  111. <dependency>
  112. <artifactId>snakeyaml</artifactId>
  113. <groupId>org.yaml</groupId>
  114. <version>${yaml.version}</version>
  115. </dependency>
  116. <dependency>
  117. <artifactId>tomcat-embed-core</artifactId>
  118. <groupId>org.apache.tomcat.embed</groupId>
  119. <version>${tomcat.version}</version>
  120. </dependency>
  121. <dependency>
  122. <artifactId>tomcat-embed-el</artifactId>
  123. <groupId>org.apache.tomcat.embed</groupId>
  124. <version>${tomcat.version}</version>
  125. </dependency>
  126. <dependency>
  127. <artifactId>tomcat-embed-websocket</artifactId>
  128. <groupId>org.apache.tomcat.embed</groupId>
  129. <version>${tomcat.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.h2database</groupId>
  133. <artifactId>h2</artifactId>
  134. <version>${h2.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.postgresql</groupId>
  138. <artifactId>postgresql</artifactId>
  139. <version>${postgresql.version}</version>
  140. </dependency>
  141. </dependencies>
  142. </dependencyManagement>
  143. <build>
  144. <plugins>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-compiler-plugin</artifactId>
  148. <version>3.8.0</version>
  149. <configuration>
  150. <source>${java.version}</source>
  151. <target>${java.version}</target>
  152. <encoding>${project.build.sourceEncoding}</encoding>
  153. <annotationProcessorPaths>
  154. <!-- <path>-->
  155. <!-- <groupId>org.springframework.boot</groupId>-->
  156. <!-- <artifactId>spring-boot-configuration-processor</artifactId>-->
  157. <!-- </path>-->
  158. </annotationProcessorPaths>
  159. </configuration>
  160. </plugin>
  161. <plugin>
  162. <groupId>com.mycila</groupId>
  163. <artifactId>license-maven-plugin</artifactId>
  164. <version>4.3</version>
  165. <executions>
  166. <execution>
  167. <phase>generate-sources</phase>
  168. <goals>
  169. <goal>remove</goal>
  170. <goal>format</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. <configuration>
  175. <quiet>true</quiet>
  176. <licenseSets>
  177. <licenseSet>
  178. <!--HEADER文件-->
  179. <header>HEADER.txt</header>
  180. <includes>
  181. <!--取消默认排除-->
  182. <include>**</include>
  183. <include>web-vue/index.html</include>
  184. <include>**/dist/index.html</include>
  185. </includes>
  186. <!--排除文件-->
  187. <excludes>
  188. <!-- https://github.com/mathieucarbou/license-maven-plugin/blob/master/license-maven-plugin/src/main/java/com/mycila/maven/plugin/license/Default.java-->
  189. <exclude>docs/**</exclude>
  190. <!-- <exclude>web-vue/src/**</exclude>-->
  191. <!-- <exclude>web-vue2/**</exclude>-->
  192. <!-- <exclude>**/*.yml</exclude>-->
  193. <exclude>**/*.md</exclude>
  194. <exclude>**/i18n/*.properties</exclude>
  195. <exclude>**/*.txt</exclude>
  196. <exclude>**/dist/assets/**</exclude>
  197. </excludes>
  198. </licenseSet>
  199. </licenseSets>
  200. <!--严格检查-->
  201. <strictCheck>true</strictCheck>
  202. <mapping>
  203. <java>SLASHSTAR_STYLE</java>
  204. </mapping>
  205. </configuration>
  206. </plugin>
  207. </plugins>
  208. </build>
  209. <profiles>
  210. <profile>
  211. <id>release</id>
  212. <!-- <distributionManagement>-->
  213. <!-- <snapshotRepository>-->
  214. <!-- <id>maven-repo</id>-->
  215. <!-- <url>https://oss.sonatype.org/content/repositories/snapshots/</url>-->
  216. <!-- </snapshotRepository>-->
  217. <!-- <repository>-->
  218. <!-- <id>maven-repo</id>-->
  219. <!-- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>-->
  220. <!-- </repository>-->
  221. <!-- </distributionManagement>-->
  222. <build>
  223. <plugins>
  224. <!-- Javadoc -->
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-javadoc-plugin</artifactId>
  228. <version>3.0.0</version>
  229. <executions>
  230. <execution>
  231. <id>attach-javadoc</id>
  232. <phase>package</phase>
  233. <goals>
  234. <goal>jar</goal>
  235. </goals>
  236. <configuration>
  237. <!-- <additionalparam>-Xdoclint:none</additionalparam>-->
  238. <additionalOptions>-Xdoclint:none</additionalOptions>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. <configuration>
  243. <tags>
  244. <tag>
  245. <name>date</name>
  246. <placement>a</placement>
  247. <head>创建时间</head>
  248. </tag>
  249. </tags>
  250. </configuration>
  251. </plugin>
  252. <!-- source插件,打包源码 -->
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-source-plugin</artifactId>
  256. <version>2.4</version>
  257. <executions>
  258. <execution>
  259. <id>attach-sources</id>
  260. <goals>
  261. <goal>jar</goal>
  262. </goals>
  263. </execution>
  264. </executions>
  265. </plugin>
  266. <!-- GPG -->
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-gpg-plugin</artifactId>
  270. <version>3.0.1</version>
  271. <executions>
  272. <execution>
  273. <id>verify-gpg</id>
  274. <phase>verify</phase>
  275. <goals>
  276. <goal>sign</goal>
  277. </goals>
  278. </execution>
  279. </executions>
  280. </plugin>
  281. <!-- <plugin>-->
  282. <!-- <groupId>org.sonatype.plugins</groupId>-->
  283. <!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
  284. <!-- <version>1.7.0</version>-->
  285. <!-- <extensions>true</extensions>-->
  286. <!-- <configuration>-->
  287. <!-- <serverId>sonatype-nexus-staging</serverId>-->
  288. <!-- <nexusUrl>https://oss.sonatype.org/</nexusUrl>-->
  289. <!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
  290. <!-- </configuration>-->
  291. <!-- </plugin>-->
  292. <plugin>
  293. <groupId>org.sonatype.central</groupId>
  294. <artifactId>central-publishing-maven-plugin</artifactId>
  295. <version>0.6.0</version>
  296. <extensions>true</extensions>
  297. <configuration>
  298. <!-- 这里的publishingServerId是在settings.xml中配置的server认证信息 -->
  299. <!-- 注意 Github Action 中的 server-id 也要与此保持一致 -->
  300. <publishingServerId>sonatype-nexus-staging</publishingServerId>
  301. <autoPublish>true</autoPublish>
  302. </configuration>
  303. </plugin>
  304. </plugins>
  305. </build>
  306. </profile>
  307. </profiles>
  308. <licenses>
  309. <license>
  310. <name>MulanPSL2 License</name>
  311. <url>http://license.coscl.org.cn/MulanPSL2</url>
  312. <distribution>repo</distribution>
  313. </license>
  314. </licenses>
  315. </project>