.flattened-pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (c) 2020 pig4cloud Authors. All Rights Reserved.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  19. <modelVersion>4.0.0</modelVersion>
  20. <groupId>com.pig4cloud</groupId>
  21. <artifactId>pig</artifactId>
  22. <version>3.9.0</version>
  23. <packaging>pom</packaging>
  24. <name>${project.artifactId}</name>
  25. <url>https://www.pig4cloud.com</url>
  26. <modules>
  27. <module>pig-gateway</module>
  28. <module>pig-auth</module>
  29. <module>pig-upms</module>
  30. <module>pig-common</module>
  31. <module>pig-visual</module>
  32. </modules>
  33. <properties>
  34. <spring-boot-admin.version>3.5.0</spring-boot-admin.version>
  35. <jaxb.version>4.0.5</jaxb.version>
  36. <docker.username>username</docker.username>
  37. <spring-boot.version>3.5.3</spring-boot.version>
  38. <configuration.version>1.10</configuration.version>
  39. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  40. <spring-cloud-alibaba.version>2023.0.3.3</spring-cloud-alibaba.version>
  41. <docker.plugin.version>0.45.1</docker.plugin.version>
  42. <spring-cloud.version>2025.0.0</spring-cloud.version>
  43. <aws.version>2.29.45</aws.version>
  44. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  45. <screw.version>0.0.3</screw.version>
  46. <velocity.tool.version>3.1</velocity.tool.version>
  47. <jasypt.version>3.0.5</jasypt.version>
  48. <docker.namespace>pig4cloud</docker.namespace>
  49. <git.commit.plugin>9.0.1</git.commit.plugin>
  50. <maven.compiler.source>17</maven.compiler.source>
  51. <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
  52. <docker.registry>registry.cn-shanghai.aliyuncs.com</docker.registry>
  53. <knife4j.version>3.0.5</knife4j.version>
  54. <revision>3.9.0</revision>
  55. <docker.host>http://192.168.0.100:2375</docker.host>
  56. <captcha.version>2.2.5</captcha.version>
  57. <maven.compiler.target>17</maven.compiler.target>
  58. <docker.password>password</docker.password>
  59. <spring.checkstyle.plugin>0.0.43</spring.checkstyle.plugin>
  60. <velocity.version>2.4</velocity.version>
  61. <swagger.fox.version>3.0.0</swagger.fox.version>
  62. </properties>
  63. <dependencyManagement>
  64. <dependencies>
  65. <dependency>
  66. <groupId>com.pig4cloud</groupId>
  67. <artifactId>pig-common-bom</artifactId>
  68. <version>${project.version}</version>
  69. <type>pom</type>
  70. <scope>import</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-dependencies</artifactId>
  75. <version>${spring-boot.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework.cloud</groupId>
  81. <artifactId>spring-cloud-dependencies</artifactId>
  82. <version>${spring-cloud.version}</version>
  83. <type>pom</type>
  84. <scope>import</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.alibaba.cloud</groupId>
  88. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  89. <version>${spring-cloud-alibaba.version}</version>
  90. <type>pom</type>
  91. <scope>import</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.alibaba.cloud</groupId>
  95. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  96. <version>${spring-cloud-alibaba.version}</version>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>com.alibaba.nacos</groupId>
  100. <artifactId>logback-adapter</artifactId>
  101. </exclusion>
  102. </exclusions>
  103. </dependency>
  104. </dependencies>
  105. </dependencyManagement>
  106. <dependencies>
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-configuration-processor</artifactId>
  110. <optional>true</optional>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.github.ulisesbocchio</groupId>
  114. <artifactId>jasypt-spring-boot-starter</artifactId>
  115. <version>${jasypt.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-actuator</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>de.codecentric</groupId>
  123. <artifactId>spring-boot-admin-starter-client</artifactId>
  124. <version>${spring-boot-admin.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.projectlombok</groupId>
  128. <artifactId>lombok</artifactId>
  129. <scope>provided</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.sun.xml.bind</groupId>
  133. <artifactId>jaxb-impl</artifactId>
  134. <version>${jaxb.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-test</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. </dependencies>
  142. <build>
  143. <resources>
  144. <resource>
  145. <filtering>true</filtering>
  146. <directory>src/main/resources</directory>
  147. </resource>
  148. </resources>
  149. <finalName>${project.name}</finalName>
  150. <pluginManagement>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-maven-plugin</artifactId>
  155. <version>${spring-boot.version}</version>
  156. <executions>
  157. <execution>
  158. <goals>
  159. <goal>repackage</goal>
  160. </goals>
  161. </execution>
  162. </executions>
  163. <configuration>
  164. <finalName>${project.build.finalName}</finalName>
  165. <layers>
  166. <enabled>true</enabled>
  167. </layers>
  168. </configuration>
  169. </plugin>
  170. <plugin>
  171. <groupId>io.fabric8</groupId>
  172. <artifactId>docker-maven-plugin</artifactId>
  173. <version>${docker.plugin.version}</version>
  174. <configuration>
  175. <dockerHost>${docker.host}</dockerHost>
  176. <registry>${docker.registry}</registry>
  177. <authConfig>
  178. <push>
  179. <username>${docker.username}</username>
  180. <password>${docker.password}</password>
  181. </push>
  182. </authConfig>
  183. <images>
  184. <image>
  185. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  186. <build>
  187. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  188. </build>
  189. </image>
  190. </images>
  191. </configuration>
  192. </plugin>
  193. </plugins>
  194. </pluginManagement>
  195. <plugins>
  196. <plugin>
  197. <groupId>org.codehaus.mojo</groupId>
  198. <artifactId>flatten-maven-plugin</artifactId>
  199. <version>${flatten-maven-plugin.version}</version>
  200. <executions>
  201. <execution>
  202. <id>flatten</id>
  203. <phase>process-resources</phase>
  204. <goals>
  205. <goal>flatten</goal>
  206. </goals>
  207. </execution>
  208. <execution>
  209. <id>flatten.clean</id>
  210. <phase>clean</phase>
  211. <goals>
  212. <goal>clean</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. <configuration>
  217. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  218. <updatePomFile>true</updatePomFile>
  219. </configuration>
  220. </plugin>
  221. <plugin>
  222. <artifactId>maven-compiler-plugin</artifactId>
  223. <version>${maven-compiler-plugin.version}</version>
  224. <configuration>
  225. <target>${maven.compiler.target}</target>
  226. <source>${maven.compiler.source}</source>
  227. <encoding>UTF-8</encoding>
  228. <parameters>true</parameters>
  229. </configuration>
  230. </plugin>
  231. <plugin>
  232. <groupId>io.github.git-commit-id</groupId>
  233. <artifactId>git-commit-id-maven-plugin</artifactId>
  234. <version>${git.commit.plugin}</version>
  235. <executions>
  236. <execution>
  237. <id>get-the-git-infos</id>
  238. <phase>initialize</phase>
  239. </execution>
  240. </executions>
  241. <configuration>
  242. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  243. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  244. <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
  245. <includeOnlyProperties>
  246. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  247. <includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
  248. </includeOnlyProperties>
  249. </configuration>
  250. </plugin>
  251. <plugin>
  252. <groupId>io.spring.javaformat</groupId>
  253. <artifactId>spring-javaformat-maven-plugin</artifactId>
  254. <version>${spring.checkstyle.plugin}</version>
  255. <executions>
  256. <execution>
  257. <phase>validate</phase>
  258. <inherited>true</inherited>
  259. </execution>
  260. </executions>
  261. </plugin>
  262. </plugins>
  263. </build>
  264. <profiles>
  265. <profile>
  266. <id>cloud</id>
  267. <activation>
  268. <activeByDefault>true</activeByDefault>
  269. </activation>
  270. <properties>
  271. <nacos.username>nacos</nacos.username>
  272. <profiles.active>dev</profiles.active>
  273. <nacos.namespace>${profiles.active}</nacos.namespace>
  274. <nacos.password>nacos</nacos.password>
  275. <nacos.address>http://127.0.0.1:8848</nacos.address>
  276. </properties>
  277. </profile>
  278. </profiles>
  279. </project>