mirror of
https://gitee.com/ChinaLym/shoulder-platform.git
synced 2025-12-30 02:52:27 +00:00
322 lines
13 KiB
XML
322 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<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">
|
||
<parent>
|
||
<groupId>cn.itlym</groupId>
|
||
<artifactId>shoulder-parent</artifactId>
|
||
<version>0.5-SNAPSHOT</version><!-- shoulder-version -->
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-parent</artifactId>
|
||
<version>1.0-SNAPSHOT</version><!-- shoulder-platform-version -->
|
||
<packaging>pom</packaging>
|
||
|
||
<url>https://github.com/ChinaLym/Shoulder-Platform</url>
|
||
<properties>
|
||
<!-- =============== Shoulder 版本 =============== -->
|
||
|
||
<shoulder.version>0.5-SNAPSHOT</shoulder.version><!-- shoulder-version -->
|
||
<shoulder-platform.version>1.0-SNAPSHOT</shoulder-platform.version><!-- shoulder-platform-version -->
|
||
|
||
<shoulder-sms-aliyun.version>1.0-SNAPSHOT</shoulder-sms-aliyun.version><!-- shoulder-sms-aliyun.version -->
|
||
|
||
<!-- =============== 第三方依赖版本 =============== -->
|
||
|
||
<!--spring-cloud-alibaba-dependencies 太久没更新,与最新版nacos存在版本不兼容 bug(无线循环同步,且不能指定 nacos 版本使用如 1.3 等,这里统一手动管理 -->
|
||
<!--其中 1.3.1 支持了优雅下线方式-->
|
||
<spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
|
||
<nacos.client.version>1.3.2</nacos.client.version>
|
||
|
||
<!--spring-cloud-alibaba引入了 fastJson,而低版本的 fastJson 太多安全漏洞,故这里统一设置为高版本-->
|
||
<fastjson.version>1.2.73</fastjson.version>
|
||
|
||
<minio.version>7.0.2</minio.version>
|
||
|
||
<!--监控-->
|
||
<spring-boot-admin-starter-client.version>2.3.0</spring-boot-admin-starter-client.version>
|
||
<micrometer-registry-prometheus.version>2.3.0</micrometer-registry-prometheus.version>
|
||
|
||
|
||
<!-- =============== 插件版本 =============== -->
|
||
|
||
<maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
|
||
<dockerfile-maven-plugin.version>1.4.19</dockerfile-maven-plugin.version>
|
||
<docker.image.prefix>shoulder</docker.image.prefix>
|
||
<spring-boot-maven-plugin.version>2.2.8.RELEASE</spring-boot-maven-plugin.version><!-- spring-boot.version -->
|
||
</properties>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>shoulder platform 的通用父类,管理了平台的技术选型和通用配置</description>
|
||
<developers>
|
||
<developer>
|
||
<name>lym</name>
|
||
<email>cn_lym@foxmail.com</email>
|
||
</developer>
|
||
</developers>
|
||
<licenses>
|
||
<license>
|
||
<name>Apache 2</name>
|
||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||
<distribution>repo</distribution>
|
||
<comments>A business-friendly OSS license</comments>
|
||
</license>
|
||
</licenses>
|
||
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
|
||
<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>
|
||
|
||
<!-- 平台提供的选型 -->
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-config-client</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-db</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-discovery-client</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-job</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-rpc-client</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-rpc-server</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-monitor</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-mq</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-trace</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-platform-starter-micro</artifactId>
|
||
<version>${shoulder-platform.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cn.itlym.platform</groupId>
|
||
<artifactId>shoulder-sms-aliyun-spring-boot-starter</artifactId>
|
||
<version>${shoulder-sms-aliyun.version}</version>
|
||
</dependency>
|
||
|
||
<!-- ============================================= -->
|
||
|
||
<!-- 升级阿里巴巴中间件包间接引入的低版本 FastJson 等,使用更安全的版本,强烈建议代码不要用 FastJson -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>${fastjson.version}</version>
|
||
</dependency>
|
||
|
||
<!--<dependency>
|
||
<groupId>com.google.guava</groupId>
|
||
<artifactId>guava</artifactId>
|
||
</dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba.nacos</groupId>
|
||
<artifactId>nacos-client</artifactId>
|
||
<version>${nacos.client.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>de.codecentric</groupId>
|
||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||
<version>${spring-boot-admin-starter-client.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.micrometer</groupId>
|
||
<artifactId>micrometer-registry-prometheus</artifactId>
|
||
<version>${micrometer-registry-prometheus.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.minio</groupId>
|
||
<artifactId>minio</artifactId>
|
||
<version>${minio.version}</version>
|
||
</dependency>
|
||
|
||
<!-- log-trace begin -->
|
||
<!--<dependency>
|
||
<groupId>io.zipkin.brave</groupId>
|
||
<artifactId>brave</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.zipkin.brave</groupId>
|
||
<artifactId>brave-instrumentation-http</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.zipkin.brave</groupId>
|
||
<artifactId>brave-instrumentation-servlet</artifactId>
|
||
<version>${brave.version}</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.zipkin.brave</groupId>
|
||
<artifactId>brave-context-slf4j</artifactId>
|
||
<version>${brave.version}</version>
|
||
</dependency>-->
|
||
<!-- log-trace end -->
|
||
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<profiles>
|
||
<!-- 开发环境 -->
|
||
<profile>
|
||
<id>dev</id>
|
||
<properties>
|
||
<profile.active>dev</profile.active>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
|
||
<!-- 测试环境-->
|
||
<profile>
|
||
<id>test</id>
|
||
<properties>
|
||
<profile.active>test</profile.active>
|
||
</properties>
|
||
</profile>
|
||
|
||
<!-- 生产环境-->
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<profile.active>prod</profile.active>
|
||
</properties>
|
||
</profile>
|
||
</profiles>
|
||
|
||
<build>
|
||
<!-- maven 默认使用 artifactId+version拼接 -->
|
||
<!--<finalName>${project.artifactId}</finalName>-->
|
||
|
||
<!-- 动态打包环境配置源文件 -->
|
||
<!--<filters>
|
||
<filter>../../dynamicConfig/config-${profile.active}.properties</filter>
|
||
</filters>-->
|
||
|
||
<!--<resources>
|
||
<resource>
|
||
<directory>src/main/resources</directory>
|
||
<includes>
|
||
<include>**/*</include>
|
||
</includes>
|
||
<filtering>true</filtering>
|
||
</resource>
|
||
</resources>-->
|
||
|
||
<pluginManagement>
|
||
<plugins>
|
||
|
||
<!-- resources资源插件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
<version>${maven-resources-plugin.version}</version>
|
||
<configuration>
|
||
<!-- 将默认的 '${*}' 和 '@' 改为 '@' -->
|
||
<useDefaultDelimiters>false</useDefaultDelimiters>
|
||
<delimiters>
|
||
<delimiter>@</delimiter>
|
||
</delimiters>
|
||
<!-- 统一项目文件字符集编码-资源文件 -->
|
||
<encoding>${project.build.sourceEncoding}</encoding>
|
||
<!-- 打包时忽略证书文件 -->
|
||
<nonFilteredFileExtensions>
|
||
<nonFilteredFileExtension>pem</nonFilteredFileExtension>
|
||
<nonFilteredFileExtension>pfx</nonFilteredFileExtension>
|
||
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
|
||
<nonFilteredFileExtension>key</nonFilteredFileExtension>
|
||
</nonFilteredFileExtensions>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- Spring Boot maven 打包插件 -->
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>${spring-boot-maven-plugin.version}</version>
|
||
<executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>repackage</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<!-- docker打包插件 -->
|
||
<plugin>
|
||
<groupId>com.spotify</groupId>
|
||
<artifactId>dockerfile-maven-plugin</artifactId>
|
||
<version>${dockerfile-maven-plugin.version}</version>
|
||
<configuration>
|
||
<repository>${docker.image.prefix}/${project.artifactId}</repository>
|
||
<tag>${shoulder-platform.version}</tag>
|
||
<buildArgs>
|
||
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
|
||
</buildArgs>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
|
||
<!-- war 方式打包插件 -->
|
||
<!--<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-war-plugin</artifactId>
|
||
<version>${maven-war-plugin}</version>2.1.1
|
||
<configuration>
|
||
<!– 设置 war 名称 和编码方式 –>
|
||
<warName>${project.artifactId}</warName>
|
||
<encoding>${project.build.sourceEncoding}</encoding>
|
||
</configuration>
|
||
</plugin>-->
|
||
|
||
</plugins>
|
||
</pluginManagement>
|
||
</build>
|
||
|
||
</project> |