pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, scis All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: scis
  18. ~
  19. -->
  20. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>com.jmcloud</groupId>
  24. <artifactId>scis</artifactId>
  25. <version>3.10.0</version>
  26. <name>${project.artifactId}</name>
  27. <packaging>pom</packaging>
  28. <organization>
  29. <name>pig4cloud</name>
  30. <url>https://www.pig4cloud.com</url>
  31. </organization>
  32. <properties>
  33. <spring-boot.version>2.3.3.RELEASE</spring-boot.version>
  34. <spring-cloud.version>Hoxton.SR8</spring-cloud.version>
  35. <spring-cloud-alibaba.version>2.2.2.RELEASE</spring-cloud-alibaba.version>
  36. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  37. <maven.compiler.source>1.8</maven.compiler.source>
  38. <maven.compiler.target>1.8</maven.compiler.target>
  39. <maven.compiler.version>3.8.1</maven.compiler.version>
  40. <spring.checkstyle.version>0.0.23</spring.checkstyle.version>
  41. <git.commit.version>2.2.5</git.commit.version>
  42. <spring-boot-admin.version>2.3.0</spring-boot-admin.version>
  43. <hutool.version>5.4.2</hutool.version>
  44. <captcha.version>1.2.4</captcha.version>
  45. <swagger.fox.version>2.9.2</swagger.fox.version>
  46. <knife4j.version>2.0.4</knife4j.version>
  47. <velocity.version>1.7</velocity.version>
  48. <lcn.version>4.1.0</lcn.version>
  49. <jasypt.version>2.1.1</jasypt.version>
  50. <ttl.version>2.11.4</ttl.version>
  51. <aws.version>1.11.543</aws.version>
  52. <xxl.job.version>2.2.0</xxl.job.version>
  53. <activiti.version>5.22.0</activiti.version>
  54. <docker.registry>172.17.0.111</docker.registry>
  55. <docker.host>http://172.17.0.111:2375</docker.host>
  56. <docker.namespace>library</docker.namespace>
  57. <docker.username>admin</docker.username>
  58. <docker.password>Harbor12345</docker.password>
  59. <docker.plugin.version>0.33.0</docker.plugin.version>
  60. <!-- 默认忽略docker构建 -->
  61. <docker.skip>true</docker.skip>
  62. </properties>
  63. <dependencies>
  64. <!--配置文件处理器-->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-configuration-processor</artifactId>
  68. <optional>true</optional>
  69. </dependency>
  70. <!--jasypt配置文件加解密-->
  71. <dependency>
  72. <groupId>com.github.ulisesbocchio</groupId>
  73. <artifactId>jasypt-spring-boot-starter</artifactId>
  74. <version>${jasypt.version}</version>
  75. </dependency>
  76. <!--监控-->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-actuator</artifactId>
  80. </dependency>
  81. <!--监控客户端-->
  82. <dependency>
  83. <groupId>de.codecentric</groupId>
  84. <artifactId>spring-boot-admin-starter-client</artifactId>
  85. <version>${spring-boot-admin.version}</version>
  86. </dependency>
  87. <!--Lombok-->
  88. <dependency>
  89. <groupId>org.projectlombok</groupId>
  90. <artifactId>lombok</artifactId>
  91. <scope>provided</scope>
  92. </dependency>
  93. <!--测试依赖-->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-test</artifactId>
  97. <scope>test</scope>
  98. </dependency>
  99. </dependencies>
  100. <modules>
  101. <module>scis-register</module>
  102. <module>scis-gateway</module>
  103. <module>scis-auth</module>
  104. <module>scis-upms</module>
  105. <module>scis-common</module>
  106. <module>scis-visual</module>
  107. <module>scis-invtory</module>
  108. </modules>
  109. <dependencyManagement>
  110. <dependencies>
  111. <!--scis 公共版本定义-->
  112. <dependency>
  113. <groupId>com.jmcloud</groupId>
  114. <artifactId>scis-common-bom</artifactId>
  115. <version>${project.version}</version>
  116. <type>pom</type>
  117. <scope>import</scope>
  118. </dependency>
  119. <!--spring boot 公共版本定义-->
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-dependencies</artifactId>
  123. <version>${spring-boot.version}</version>
  124. <type>pom</type>
  125. <scope>import</scope>
  126. </dependency>
  127. <!--spring cloud 公共版本定义-->
  128. <dependency>
  129. <groupId>org.springframework.cloud</groupId>
  130. <artifactId>spring-cloud-dependencies</artifactId>
  131. <version>${spring-cloud.version}</version>
  132. <type>pom</type>
  133. <scope>import</scope>
  134. </dependency>
  135. <!--spring cloud alibaba-->
  136. <dependency>
  137. <groupId>com.alibaba.cloud</groupId>
  138. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  139. <version>${spring-cloud-alibaba.version}</version>
  140. <type>pom</type>
  141. <scope>import</scope>
  142. </dependency>
  143. <!--web 模块-->
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-web</artifactId>
  147. <version>${spring-boot.version}</version>
  148. <exclusions>
  149. <!--排除tomcat依赖-->
  150. <exclusion>
  151. <artifactId>spring-boot-starter-tomcat</artifactId>
  152. <groupId>org.springframework.boot</groupId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. </dependencies>
  157. </dependencyManagement>
  158. <build>
  159. <finalName>${project.name}</finalName>
  160. <resources>
  161. <resource>
  162. <directory>src/main/resources</directory>
  163. <filtering>true</filtering>
  164. </resource>
  165. </resources>
  166. <pluginManagement>
  167. <plugins>
  168. <!--spring boot 默认插件-->
  169. <plugin>
  170. <groupId>org.springframework.boot</groupId>
  171. <artifactId>spring-boot-maven-plugin</artifactId>
  172. <version>${spring-boot.version}</version>
  173. <executions>
  174. <execution>
  175. <goals>
  176. <goal>repackage</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <!--maven docker 打包插件 -->
  182. <plugin>
  183. <groupId>io.fabric8</groupId>
  184. <artifactId>docker-maven-plugin</artifactId>
  185. <version>${docker.plugin.version}</version>
  186. <configuration>
  187. <dockerHost>${docker.host}</dockerHost>
  188. <registry>${docker.registry}</registry>
  189. <authConfig>
  190. <push>
  191. <username>${docker.username}</username>
  192. <password>${docker.password}</password>
  193. </push>
  194. </authConfig>
  195. <images>
  196. <image>
  197. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  198. <build>
  199. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  200. </build>
  201. </image>
  202. </images>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. </pluginManagement>
  207. <plugins>
  208. <!--代码格式插件,默认使用spring 规则-->
  209. <plugin>
  210. <groupId>io.spring.javaformat</groupId>
  211. <artifactId>spring-javaformat-maven-plugin</artifactId>
  212. <version>${spring.checkstyle.version}</version>
  213. </plugin>
  214. <!--代码编译指定版本插件-->
  215. <plugin>
  216. <groupId>org.apache.maven.plugins</groupId>
  217. <artifactId>maven-compiler-plugin</artifactId>
  218. <version>${maven.compiler.version}</version>
  219. <configuration>
  220. <target>${maven.compiler.target}</target>
  221. <source>${maven.compiler.source}</source>
  222. <encoding>UTF-8</encoding>
  223. <skip>true</skip>
  224. </configuration>
  225. </plugin>
  226. <!--打包关联最新 git commit 信息插件-->
  227. <plugin>
  228. <groupId>pl.project13.maven</groupId>
  229. <artifactId>git-commit-id-plugin</artifactId>
  230. <version>${git.commit.version}</version>
  231. </plugin>
  232. </plugins>
  233. </build>
  234. <pluginRepositories>
  235. <pluginRepository>
  236. <id>aliyun-plugin</id>
  237. <url>https://maven.aliyun.com/repository/public</url>
  238. <releases>
  239. <enabled>true</enabled>
  240. </releases>
  241. <snapshots>
  242. <enabled>false</enabled>
  243. </snapshots>
  244. </pluginRepository>
  245. </pluginRepositories>
  246. <repositories>
  247. <!--阿里云代理-->
  248. <repository>
  249. <id>aliyun</id>
  250. <name>aliyun</name>
  251. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  252. </repository>
  253. </repositories>
  254. <profiles>
  255. <profile>
  256. <id>dev</id>
  257. <properties>
  258. <!-- 环境标识,需要与配置文件的名称相对应 -->
  259. <profiles.active>dev</profiles.active>
  260. </properties>
  261. <activation>
  262. <!-- 默认环境 -->
  263. <activeByDefault>true</activeByDefault>
  264. </activation>
  265. </profile>
  266. <profile>
  267. <id>test</id>
  268. <properties>
  269. <profiles.active>test</profiles.active>
  270. </properties>
  271. </profile>
  272. <profile>
  273. <id>prod</id>
  274. <properties>
  275. <profiles.active>prod</profiles.active>
  276. </properties>
  277. </profile>
  278. </profiles>
  279. </project>