基于pigx的分布式架构
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

249 lines
8.8 KiB

11 months ago
  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>iec</artifactId>
  22. <version>3.8.1-JDK8</version>
  23. <packaging>pom</packaging>
  24. <name>${project.artifactId}</name>
  25. <url>https://www.pig4cloud.com</url>
  26. <modules>
  27. <module>iec-register</module>
  28. <module>iec-gateway</module>
  29. <module>iec-auth</module>
  30. <module>iec-upms</module>
  31. <module>iec-common</module>
  32. </modules>
  33. <properties>
  34. <xxl-job.version>2.4.0</xxl-job.version>
  35. <velocity.version>2.3</velocity.version>
  36. <knife4j.version>3.0.5</knife4j.version>
  37. <screw.version>0.0.1</screw.version>
  38. <lombok.version>1.18.30</lombok.version>
  39. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  40. <spring-boot.version>2.7.18</spring-boot.version>
  41. <docker.namespace>pig4cloud</docker.namespace>
  42. <spring-cloud.version>2021.0.8</spring-cloud.version>
  43. <captcha.version>2.2.3</captcha.version>
  44. <configuration.version>1.10</configuration.version>
  45. <docker.password>password</docker.password>
  46. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  47. <spring.authorization.version>0.4.5</spring.authorization.version>
  48. <revision>3.8.1-JDK8</revision>
  49. <maven.compiler.source>1.8</maven.compiler.source>
  50. <velocity.tool.version>3.1</velocity.tool.version>
  51. <spring-boot-admin.version>2.7.15</spring-boot-admin.version>
  52. <jasypt.version>3.0.5</jasypt.version>
  53. <docker.registry>192.168.0.100</docker.registry>
  54. <docker.host>http://192.168.0.100:2375</docker.host>
  55. <maven.compiler.target>1.8</maven.compiler.target>
  56. <git.commit.plugin>4.9.9</git.commit.plugin>
  57. <spring.checkstyle.plugin>0.0.39</spring.checkstyle.plugin>
  58. <springdoc.version>1.6.9</springdoc.version>
  59. <docker.username>username</docker.username>
  60. <spring-cloud-alibaba.version>2021.0.6.1</spring-cloud-alibaba.version>
  61. <docker.plugin.version>0.32.0</docker.plugin.version>
  62. </properties>
  63. <dependencyManagement>
  64. <dependencies>
  65. <dependency>
  66. <groupId>com.pig4cloud</groupId>
  67. <artifactId>iec-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. </dependencies>
  94. </dependencyManagement>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-configuration-processor</artifactId>
  99. <optional>true</optional>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.github.ulisesbocchio</groupId>
  103. <artifactId>jasypt-spring-boot-starter</artifactId>
  104. <version>${jasypt.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-starter-actuator</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>de.codecentric</groupId>
  112. <artifactId>spring-boot-admin-starter-client</artifactId>
  113. <version>${spring-boot-admin.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.projectlombok</groupId>
  117. <artifactId>lombok</artifactId>
  118. <version>${lombok.version}</version>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-starter-test</artifactId>
  124. <scope>test</scope>
  125. </dependency>
  126. </dependencies>
  127. <build>
  128. <resources>
  129. <resource>
  130. <filtering>true</filtering>
  131. <directory>src/main/resources</directory>
  132. </resource>
  133. </resources>
  134. <finalName>${project.name}</finalName>
  135. <pluginManagement>
  136. <plugins>
  137. <plugin>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-maven-plugin</artifactId>
  140. <version>${spring-boot.version}</version>
  141. <executions>
  142. <execution>
  143. <goals>
  144. <goal>repackage</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. <configuration>
  149. <finalName>${project.build.finalName}</finalName>
  150. <layers>
  151. <enabled>true</enabled>
  152. </layers>
  153. </configuration>
  154. </plugin>
  155. <plugin>
  156. <groupId>io.fabric8</groupId>
  157. <artifactId>docker-maven-plugin</artifactId>
  158. <version>${docker.plugin.version}</version>
  159. <configuration>
  160. <dockerHost>${docker.host}</dockerHost>
  161. <registry>${docker.registry}</registry>
  162. <authConfig>
  163. <push>
  164. <username>${docker.username}</username>
  165. <password>${docker.password}</password>
  166. </push>
  167. </authConfig>
  168. <images>
  169. <image>
  170. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  171. <build>
  172. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  173. </build>
  174. </image>
  175. </images>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </pluginManagement>
  180. <plugins>
  181. <plugin>
  182. <groupId>org.codehaus.mojo</groupId>
  183. <artifactId>flatten-maven-plugin</artifactId>
  184. <version>${flatten-maven-plugin.version}</version>
  185. <executions>
  186. <execution>
  187. <id>flatten</id>
  188. <phase>process-resources</phase>
  189. <goals>
  190. <goal>flatten</goal>
  191. </goals>
  192. </execution>
  193. <execution>
  194. <id>flatten.clean</id>
  195. <phase>clean</phase>
  196. <goals>
  197. <goal>clean</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. <configuration>
  202. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  203. <updatePomFile>true</updatePomFile>
  204. </configuration>
  205. </plugin>
  206. <plugin>
  207. <groupId>io.github.git-commit-id</groupId>
  208. <artifactId>git-commit-id-maven-plugin</artifactId>
  209. <version>${git.commit.plugin}</version>
  210. <executions>
  211. <execution>
  212. <id>get-the-git-infos</id>
  213. <phase>initialize</phase>
  214. <goals>
  215. <goal>revision</goal>
  216. </goals>
  217. </execution>
  218. </executions>
  219. <configuration>
  220. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  221. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  222. <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
  223. <includeOnlyProperties>
  224. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  225. <includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
  226. </includeOnlyProperties>
  227. </configuration>
  228. </plugin>
  229. <plugin>
  230. <groupId>io.spring.javaformat</groupId>
  231. <artifactId>spring-javaformat-maven-plugin</artifactId>
  232. <version>${spring.checkstyle.plugin}</version>
  233. </plugin>
  234. </plugins>
  235. </build>
  236. <profiles>
  237. <profile>
  238. <id>cloud</id>
  239. <activation>
  240. <activeByDefault>true</activeByDefault>
  241. </activation>
  242. <properties>
  243. <nacos.password>nacos</nacos.password>
  244. <profiles.active>dev</profiles.active>
  245. <nacos.username>nacos</nacos.username>
  246. </properties>
  247. </profile>
  248. </profiles>
  249. </project>