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"
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
<groupId>com.pig4cloud</groupId>
|
|
|
|
|
<artifactId>pig</artifactId>
|
|
|
|
|
<name>${project.artifactId}</name>
|
2021-12-04 08:04:27 +08:00
|
|
|
|
<version>3.4.2</version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
<url>https://www.pig4cloud.com</url>
|
|
|
|
|
|
|
|
|
|
<properties>
|
2021-12-22 23:08:55 +08:00
|
|
|
|
<spring-boot.version>2.6.2</spring-boot.version>
|
2021-12-04 08:04:27 +08:00
|
|
|
|
<spring-cloud.version>2021.0.0</spring-cloud.version>
|
2021-04-09 10:10:12 +08:00
|
|
|
|
<spring-cloud-alibaba.version>2021.1</spring-cloud-alibaba.version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
2021-12-20 13:31:06 +08:00
|
|
|
|
<spring-boot-admin.version>2.5.5</spring-boot-admin.version>
|
2021-12-22 23:02:07 +08:00
|
|
|
|
<hutool.version>5.7.17</hutool.version>
|
2021-08-01 14:40:43 +08:00
|
|
|
|
<dynamic-ds.version>3.4.1</dynamic-ds.version>
|
2021-10-18 09:53:39 +08:00
|
|
|
|
<captcha.version>2.2.1</captcha.version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<velocity.version>1.7</velocity.version>
|
2021-03-22 15:45:56 +08:00
|
|
|
|
<configuration.version>1.10</configuration.version>
|
2021-08-24 17:50:03 +08:00
|
|
|
|
<nacos.version>2.0.3</nacos.version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<jasypt.version>2.1.0</jasypt.version>
|
2020-10-04 14:30:40 +08:00
|
|
|
|
<swagger.fox.version>3.0.0</swagger.fox.version>
|
2021-02-14 20:18:50 +08:00
|
|
|
|
<xxl-job.version>2.3.0</xxl-job.version>
|
2020-01-27 22:46:56 +08:00
|
|
|
|
<docker.plugin.version>0.32.0</docker.plugin.version>
|
2020-10-06 22:27:24 +08:00
|
|
|
|
<docker.host>http://192.168.0.100:2375</docker.host>
|
|
|
|
|
<docker.registry>192.168.0.100</docker.registry>
|
2020-10-04 14:30:40 +08:00
|
|
|
|
<docker.namespace>pig4cloud</docker.namespace>
|
2020-10-06 22:27:24 +08:00
|
|
|
|
<docker.username>username</docker.username>
|
|
|
|
|
<docker.password>password</docker.password>
|
2021-10-20 20:52:45 +08:00
|
|
|
|
<git.commit.plugin>4.9.9</git.commit.plugin>
|
2021-10-18 09:53:39 +08:00
|
|
|
|
<spring.checkstyle.plugin>0.0.29</spring.checkstyle.plugin>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
2021-08-26 14:14:22 +08:00
|
|
|
|
<!-- 以下依赖 全局所有的模块都会引入 -->
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<dependencies>
|
2020-12-04 14:16:34 +08:00
|
|
|
|
<!--bootstrap 启动器-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
|
|
</dependency>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<!--配置文件处理器-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
2020-05-17 11:16:54 +08:00
|
|
|
|
<!--配置文件加解密-->
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.ulisesbocchio</groupId>
|
|
|
|
|
<artifactId>jasypt-spring-boot-starter</artifactId>
|
|
|
|
|
<version>${jasypt.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--监控-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--监控客户端-->
|
|
|
|
|
<dependency>
|
2019-12-08 21:11:50 +08:00
|
|
|
|
<groupId>de.codecentric</groupId>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<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>
|
|
|
|
|
<!--测试依赖-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<modules>
|
2019-11-29 17:20:52 +08:00
|
|
|
|
<module>pig-register</module>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<module>pig-gateway</module>
|
|
|
|
|
<module>pig-auth</module>
|
|
|
|
|
<module>pig-upms</module>
|
|
|
|
|
<module>pig-common</module>
|
2020-06-11 16:52:05 +08:00
|
|
|
|
<module>pig-visual</module>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</modules>
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
2021-11-18 21:40:05 +08:00
|
|
|
|
<!--pig 公共版本定义-->
|
2021-08-26 14:14:22 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.pig4cloud</groupId>
|
|
|
|
|
<artifactId>pig-common-bom</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
2020-10-04 14:30:40 +08:00
|
|
|
|
<!-- spring boot 依赖 -->
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
2020-10-04 14:30:40 +08:00
|
|
|
|
<!-- spring cloud 依赖 -->
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
|
|
|
<version>${spring-cloud.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
2020-10-04 14:30:40 +08:00
|
|
|
|
<!-- spring cloud alibaba 依赖 -->
|
2019-11-29 17:20:52 +08:00
|
|
|
|
<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>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<finalName>${project.name}</finalName>
|
2019-06-25 12:06:07 +08:00
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<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>
|
2020-10-01 17:17:03 +08:00
|
|
|
|
<layers>
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
</layers>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2020-01-17 20:46:22 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
<version>${docker.plugin.version}</version>
|
|
|
|
|
<configuration>
|
2020-01-27 22:46:56 +08:00
|
|
|
|
<!-- Docker Remote Api-->
|
2020-01-17 20:46:22 +08:00
|
|
|
|
<dockerHost>${docker.host}</dockerHost>
|
2020-01-27 22:46:56 +08:00
|
|
|
|
<!-- Docker 镜像私服-->
|
2020-01-17 20:46:22 +08:00
|
|
|
|
<registry>${docker.registry}</registry>
|
2020-01-27 22:46:56 +08:00
|
|
|
|
<!-- 认证信息-->
|
2020-01-17 20:46:22 +08:00
|
|
|
|
<authConfig>
|
|
|
|
|
<push>
|
|
|
|
|
<username>${docker.username}</username>
|
|
|
|
|
<password>${docker.password}</password>
|
|
|
|
|
</push>
|
|
|
|
|
</authConfig>
|
|
|
|
|
<images>
|
|
|
|
|
<image>
|
2020-01-27 22:46:56 +08:00
|
|
|
|
<!-- 镜像名称: 172.17.0.111/library/pig-gateway:2.6.3-->
|
|
|
|
|
<name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
|
2020-01-17 20:46:22 +08:00
|
|
|
|
<build>
|
|
|
|
|
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
|
|
|
|
|
</build>
|
|
|
|
|
</image>
|
|
|
|
|
</images>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
</pluginManagement>
|
2021-08-26 14:14:22 +08:00
|
|
|
|
<plugins>
|
|
|
|
|
<!--打包jar 与git commit 关联插件-->
|
|
|
|
|
<plugin>
|
2021-10-18 09:53:39 +08:00
|
|
|
|
<groupId>io.github.git-commit-id</groupId>
|
|
|
|
|
<artifactId>git-commit-id-maven-plugin</artifactId>
|
2021-08-26 14:14:22 +08:00
|
|
|
|
<version>${git.commit.plugin}</version>
|
2021-10-18 09:53:39 +08:00
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>get-the-git-infos</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>revision</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<phase>initialize</phase>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
2021-10-19 15:07:40 +08:00
|
|
|
|
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
2021-10-18 09:53:39 +08:00
|
|
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
2021-10-26 19:14:36 +08:00
|
|
|
|
<!--因为项目定制了jackson的日期时间序列化/反序列化格式,因此这里要进行配置,不然通过management.info.git.mode=full进行完整git信息监控时会存在问题-->
|
2021-10-23 09:58:18 +08:00
|
|
|
|
<dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
|
|
|
|
|
<includeOnlyProperties>
|
|
|
|
|
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
|
|
|
|
|
<includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
|
|
|
|
|
</includeOnlyProperties>
|
2021-10-18 09:53:39 +08:00
|
|
|
|
</configuration>
|
2021-08-26 14:14:22 +08:00
|
|
|
|
</plugin>
|
|
|
|
|
<!--代码格式插件,默认使用spring 规则-->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.spring.javaformat</groupId>
|
|
|
|
|
<artifactId>spring-javaformat-maven-plugin</artifactId>
|
|
|
|
|
<version>${spring.checkstyle.plugin}</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</build>
|
|
|
|
|
|
2019-11-29 17:20:52 +08:00
|
|
|
|
<profiles>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>dev</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
|
|
<profiles.active>dev</profiles.active>
|
|
|
|
|
</properties>
|
|
|
|
|
<activation>
|
|
|
|
|
<!-- 默认环境 -->
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
</activation>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</project>
|