2019-02-01 21:06:59 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
~ Copyright (c) 2019-2020, 冷冷 (wangiegie@gmail.com).
|
|
|
|
|
~ <p>
|
|
|
|
|
~ Licensed under the GNU Lesser General Public License 3.0 (the "License");
|
|
|
|
|
~ you may not use this file except in compliance with the License.
|
|
|
|
|
~ You may obtain a copy of the License at
|
|
|
|
|
~ <p>
|
|
|
|
|
~ https://www.gnu.org/licenses/lgpl.html
|
|
|
|
|
~ <p>
|
|
|
|
|
~ 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.
|
|
|
|
|
-->
|
|
|
|
|
<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>
|
|
|
|
|
|
2019-11-05 01:07:27 +08:00
|
|
|
|
<parent>
|
|
|
|
|
<groupId>com.pig4cloud</groupId>
|
|
|
|
|
<artifactId>pig-cloud-dependencies-parent</artifactId>
|
2020-01-02 11:11:40 +08:00
|
|
|
|
<version>Hoxton.SR1</version>
|
2019-11-05 01:07:27 +08:00
|
|
|
|
</parent>
|
|
|
|
|
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<groupId>com.pig4cloud</groupId>
|
|
|
|
|
<artifactId>pig</artifactId>
|
2020-01-13 19:56:35 +08:00
|
|
|
|
<version>2.6.3</version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<name>${project.artifactId}</name>
|
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
<url>https://www.pig4cloud.com</url>
|
|
|
|
|
|
|
|
|
|
<properties>
|
2020-01-17 20:50:44 +08:00
|
|
|
|
<spring-boot.version>2.2.3.RELEASE</spring-boot.version>
|
2020-01-01 19:15:23 +08:00
|
|
|
|
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
|
2019-11-29 17:20:52 +08:00
|
|
|
|
<spring-cloud-alibaba.version>2.1.1.RELEASE</spring-cloud-alibaba.version>
|
2019-06-25 12:06:07 +08:00
|
|
|
|
<spring-platform.version>Cairo-SR8</spring-platform.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>
|
2020-01-01 19:15:23 +08:00
|
|
|
|
<spring-boot-admin.version>2.2.1</spring-boot-admin.version>
|
2020-01-17 20:50:44 +08:00
|
|
|
|
<hutool.version>5.1.1</hutool.version>
|
|
|
|
|
<mybatis-plus.version>3.3.1</mybatis-plus.version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
<kaptcha.version>0.0.9</kaptcha.version>
|
|
|
|
|
<velocity.version>1.7</velocity.version>
|
|
|
|
|
<jasypt.version>2.1.0</jasypt.version>
|
2019-11-28 08:20:49 +08:00
|
|
|
|
<swagger.fox.version>2.9.2</swagger.fox.version>
|
2020-01-01 22:14:56 +08:00
|
|
|
|
<security.oauth.version>2.3.6.RELEASE</security.oauth.version>
|
2020-01-17 20:46:22 +08:00
|
|
|
|
<docker.registry>http://172.17.0.111:2375</docker.registry>
|
|
|
|
|
<docker.host>172.17.0.111</docker.host>
|
|
|
|
|
<docker.namespace>library</docker.namespace>
|
|
|
|
|
<docker.username>admin</docker.username>
|
|
|
|
|
<docker.password>Harbor12345</docker.password>
|
|
|
|
|
<docker.plugin.version>0.32.0</docker.plugin.version>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!--配置文件处理器-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<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>
|
|
|
|
|
<!--断路器依赖-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
|
|
|
|
|
</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>
|
2019-11-29 17:20:52 +08:00
|
|
|
|
<module>pig-codegen</module>
|
|
|
|
|
<module>pig-monitor</module>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</modules>
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.spring.platform</groupId>
|
|
|
|
|
<artifactId>platform-bom</artifactId>
|
|
|
|
|
<version>${spring-platform.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
|
|
|
<version>${spring-cloud.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
2019-11-29 17:20:52 +08:00
|
|
|
|
<!--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>
|
2020-01-01 22:14:56 +08:00
|
|
|
|
<!--稳定版本,替代spring security bom内置-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.security.oauth</groupId>
|
|
|
|
|
<artifactId>spring-security-oauth2</artifactId>
|
|
|
|
|
<version>${security.oauth.version}</version>
|
|
|
|
|
</dependency>
|
2020-01-01 19:15:23 +08:00
|
|
|
|
<!--web 模块-->
|
2019-04-02 21:44:49 +08:00
|
|
|
|
<dependency>
|
2020-01-01 19:15:23 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<exclusions>
|
|
|
|
|
<!--排除tomcat依赖-->
|
|
|
|
|
<exclusion>
|
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
2019-04-02 21:44:49 +08:00
|
|
|
|
</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>
|
|
|
|
|
</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>
|
|
|
|
|
<dockerHost>${docker.host}</dockerHost>
|
|
|
|
|
<registry>${docker.registry}</registry>
|
|
|
|
|
<authConfig>
|
|
|
|
|
<push>
|
|
|
|
|
<username>${docker.username}</username>
|
|
|
|
|
<password>${docker.password}</password>
|
|
|
|
|
</push>
|
|
|
|
|
</authConfig>
|
|
|
|
|
<images>
|
|
|
|
|
<image>
|
|
|
|
|
<name>${docker.host}/${docker.namespace}/${project.name}:${project.version}</name>
|
|
|
|
|
<build>
|
|
|
|
|
<dockerFile>${project.basedir}/Dockerfile</dockerFile>
|
|
|
|
|
</build>
|
|
|
|
|
</image>
|
|
|
|
|
</images>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
</pluginManagement>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>pl.project13.maven</groupId>
|
|
|
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
|
|
|
<version>2.2.5</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
<repositories>
|
2019-11-05 01:07:27 +08:00
|
|
|
|
<!--阿里云主仓库,代理了maven central和jcenter仓库-->
|
|
|
|
|
<repository>
|
|
|
|
|
<id>aliyun</id>
|
|
|
|
|
<name>aliyun</name>
|
|
|
|
|
<url>https://maven.aliyun.com/repository/public</url>
|
2019-03-05 23:12:20 +08:00
|
|
|
|
<releases>
|
|
|
|
|
<enabled>true</enabled>
|
|
|
|
|
</releases>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</snapshots>
|
2019-02-01 21:06:59 +08:00
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
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>
|