2019-02-01 21:06:59 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<!--
|
2020-09-14 21:39:42 +08:00
|
|
|
|
~ Copyright (c) 2020 pig4cloud Authors. All Rights Reserved.
|
|
|
|
|
~
|
|
|
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
~ you may not use this file except in compliance with the License.
|
|
|
|
|
~ You may obtain a copy of the License at
|
|
|
|
|
~
|
|
|
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
~
|
|
|
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
~ See the License for the specific language governing permissions and
|
|
|
|
|
~ limitations under the License.
|
2019-02-01 21:06:59 +08:00
|
|
|
|
-->
|
|
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
2022-06-02 17:31:34 +08:00
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<groupId>com.pig4cloud</groupId>
|
|
|
|
|
<artifactId>pig</artifactId>
|
|
|
|
|
<name>${project.artifactId}</name>
|
2024-01-28 21:02:51 +08:00
|
|
|
|
<version>${revision}</version>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
<url>https://www.pig4cloud.com</url>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<properties>
|
2024-01-28 21:02:51 +08:00
|
|
|
|
<!-- 项目版本号 -->
|
2024-03-08 17:24:00 +08:00
|
|
|
|
<revision>3.7.5</revision>
|
2024-02-23 14:38:37 +08:00
|
|
|
|
<spring-boot.version>3.2.3</spring-boot.version>
|
2023-12-07 13:01:55 +08:00
|
|
|
|
<spring-cloud.version>2023.0.0</spring-cloud.version>
|
2023-07-26 09:28:40 +08:00
|
|
|
|
<spring-cloud-alibaba.version>2022.0.0.0</spring-cloud-alibaba.version>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2022-12-23 09:28:21 +08:00
|
|
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>17</maven.compiler.target>
|
2024-02-21 13:48:50 +08:00
|
|
|
|
<spring-boot-admin.version>3.2.2</spring-boot-admin.version>
|
2024-02-21 13:50:37 +08:00
|
|
|
|
<spring.authorization.version>1.2.2</spring.authorization.version>
|
2023-07-07 16:12:01 +08:00
|
|
|
|
<screw.version>0.0.3</screw.version>
|
2023-08-24 10:54:15 +08:00
|
|
|
|
<captcha.version>2.2.3</captcha.version>
|
2024-03-08 08:59:01 +08:00
|
|
|
|
<aws.version>1.12.675</aws.version>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<velocity.version>2.3</velocity.version>
|
|
|
|
|
<velocity.tool.version>3.1</velocity.tool.version>
|
|
|
|
|
<configuration.version>1.10</configuration.version>
|
2022-12-23 16:40:36 +08:00
|
|
|
|
<jasypt.version>3.0.5</jasypt.version>
|
2024-03-07 19:11:34 +08:00
|
|
|
|
<jaxb.version>4.0.5</jaxb.version>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<swagger.fox.version>3.0.0</swagger.fox.version>
|
2023-10-27 22:14:25 +08:00
|
|
|
|
<xxl-job.version>2.4.0</xxl-job.version>
|
2024-03-03 02:24:15 +08:00
|
|
|
|
<docker.plugin.version>0.44.0</docker.plugin.version>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<docker.host>http://192.168.0.100:2375</docker.host>
|
2023-07-28 22:11:10 +08:00
|
|
|
|
<docker.registry>registry.cn-shanghai.aliyuncs.com</docker.registry>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<docker.namespace>pig4cloud</docker.namespace>
|
|
|
|
|
<docker.username>username</docker.username>
|
|
|
|
|
<docker.password>password</docker.password>
|
2024-03-10 01:05:50 +08:00
|
|
|
|
<git.commit.plugin>8.0.1</git.commit.plugin>
|
2024-03-02 19:38:00 +08:00
|
|
|
|
<spring.checkstyle.plugin>0.0.41</spring.checkstyle.plugin>
|
2024-01-28 21:02:51 +08:00
|
|
|
|
<flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
|
2024-03-03 05:36:55 +08:00
|
|
|
|
<maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
</properties>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<!-- 以下依赖 全局所有的模块都会引入 -->
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!--配置文件处理器-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--配置文件加解密-->
|
2023-05-26 15:46:52 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.ulisesbocchio</groupId>
|
|
|
|
|
<artifactId>jasypt-spring-boot-starter</artifactId>
|
|
|
|
|
<version>${jasypt.version}</version>
|
|
|
|
|
</dependency>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<!--监控-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--监控客户端-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>de.codecentric</groupId>
|
|
|
|
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
|
|
|
|
<version>${spring-boot-admin.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--Lombok-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
</dependency>
|
2023-08-15 22:39:08 +08:00
|
|
|
|
<!-- JAVA 17 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.sun.xml.bind</groupId>
|
|
|
|
|
<artifactId>jaxb-impl</artifactId>
|
|
|
|
|
<version>${jaxb.version}</version>
|
|
|
|
|
</dependency>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<!--测试依赖-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<modules>
|
2022-12-23 13:05:27 +08:00
|
|
|
|
<module>pig-register</module>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<module>pig-gateway</module>
|
|
|
|
|
<module>pig-auth</module>
|
|
|
|
|
<module>pig-upms</module>
|
|
|
|
|
<module>pig-common</module>
|
|
|
|
|
<module>pig-visual</module>
|
|
|
|
|
</modules>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!--pig 公共版本定义-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.pig4cloud</groupId>
|
|
|
|
|
<artifactId>pig-common-bom</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- spring boot 依赖 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- spring cloud 依赖 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
|
|
|
<version>${spring-cloud.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- spring cloud alibaba 依赖 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
|
|
|
<version>${spring-cloud-alibaba.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<build>
|
|
|
|
|
<finalName>${project.name}</finalName>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<pluginManagement>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<finalName>${project.build.finalName}</finalName>
|
|
|
|
|
<layers>
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
</layers>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
<version>${docker.plugin.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<!-- Docker Remote Api-->
|
|
|
|
|
<dockerHost>${docker.host}</dockerHost>
|
|
|
|
|
<!-- Docker 镜像私服-->
|
|
|
|
|
<registry>${docker.registry}</registry>
|
|
|
|
|
<!-- 认证信息-->
|
|
|
|
|
<authConfig>
|
|
|
|
|
<push>
|
|
|
|
|
<username>${docker.username}</username>
|
|
|
|
|
<password>${docker.password}</password>
|
|
|
|
|
</push>
|
|
|
|
|
</authConfig>
|
|
|
|
|
<images>
|
|
|
|
|
<image>
|
|
|
|
|
<!-- 镜像名称: 172.17.0.111/library/pig-gateway:2.6.3-->
|
|
|
|
|
<name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
|
|
|
|
|
<build>
|
|
|
|
|
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
|
|
|
|
|
</build>
|
|
|
|
|
</image>
|
|
|
|
|
</images>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</pluginManagement>
|
|
|
|
|
<plugins>
|
2024-01-28 21:02:51 +08:00
|
|
|
|
<!-- 统一 revision 版本 -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
|
<version>${flatten-maven-plugin.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
|
|
|
|
<updatePomFile>true</updatePomFile>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>flatten</id>
|
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>flatten</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>flatten.clean</id>
|
|
|
|
|
<phase>clean</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>clean</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2023-07-07 16:12:01 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
|
|
|
<configuration>
|
2024-01-28 17:10:57 +08:00
|
|
|
|
<target>${maven.compiler.target}</target>
|
|
|
|
|
<source>${maven.compiler.source}</source>
|
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
|
<parameters>true</parameters>
|
2023-07-07 16:12:01 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<!--打包jar 与git commit 关联插件-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.github.git-commit-id</groupId>
|
|
|
|
|
<artifactId>git-commit-id-maven-plugin</artifactId>
|
|
|
|
|
<version>${git.commit.plugin}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>get-the-git-infos</id>
|
|
|
|
|
<phase>initialize</phase>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
|
|
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
|
|
|
<!--因为项目定制了jackson的日期时间序列化/反序列化格式,因此这里要进行配置,不然通过management.info.git.mode=full进行完整git信息监控时会存在问题-->
|
|
|
|
|
<dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
|
|
|
|
|
<includeOnlyProperties>
|
|
|
|
|
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
|
|
|
|
|
<includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
|
|
|
|
|
</includeOnlyProperties>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2022-06-28 09:30:16 +08:00
|
|
|
|
<!--
|
|
|
|
|
代码格式插件,默认使用spring 规则,可运行命令进行项目格式化:./mvnw spring-javaformat:apply 或 mvn spring-javaformat:apply,可在IDEA中安装插件以下插件进行自动格式化:
|
|
|
|
|
https://repo1.maven.org/maven2/io/spring/javaformat/spring-javaformat-intellij-idea-plugin
|
|
|
|
|
-->
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.spring.javaformat</groupId>
|
|
|
|
|
<artifactId>spring-javaformat-maven-plugin</artifactId>
|
|
|
|
|
<version>${spring.checkstyle.plugin}</version>
|
2022-12-23 12:29:45 +08:00
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>validate</phase>
|
|
|
|
|
<inherited>true</inherited>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
2022-06-02 17:31:34 +08:00
|
|
|
|
<profiles>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>dev</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
|
|
<profiles.active>dev</profiles.active>
|
2023-08-22 21:47:27 +08:00
|
|
|
|
<nacos.username>nacos</nacos.username>
|
|
|
|
|
<nacos.password>nacos</nacos.password>
|
2022-06-02 17:31:34 +08:00
|
|
|
|
</properties>
|
|
|
|
|
<activation>
|
|
|
|
|
<!-- 默认环境 -->
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
</activation>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
2022-12-23 12:29:45 +08:00
|
|
|
|
|
2023-05-26 15:46:52 +08:00
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>snapshots</id>
|
|
|
|
|
<url>
|
|
|
|
|
https://oss.sonatype.org/content/repositories/snapshots/
|
|
|
|
|
</url>
|
|
|
|
|
</repository>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>release</id>
|
|
|
|
|
<url>
|
|
|
|
|
https://oss.sonatype.org/service/local/staging/deploy/maven2/
|
|
|
|
|
</url>
|
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
2022-12-23 12:29:45 +08:00
|
|
|
|
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</project>
|