2020-02-28 07:58:15 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-07-30 17:22:19 +08:00
|
|
|
|
<!--
|
|
|
|
|
~ Copyright (c) 2020-2030 ZHENGGENGWEI(码匠君)<herodotus@aliyun.com>
|
|
|
|
|
~
|
|
|
|
|
~ Dante Cloud 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.
|
|
|
|
|
~
|
|
|
|
|
~ Dante Cloud 采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
|
|
|
|
|
~
|
|
|
|
|
~ 1.请不要删除和修改根目录下的LICENSE文件。
|
|
|
|
|
~ 2.请不要删除和修改 Dante Cloud 源码头部的版权声明。
|
|
|
|
|
~ 3.请保留源码和相关描述文件的项目出处,作者声明等。
|
|
|
|
|
~ 4.分发源码时候,请注明软件出处 https://gitee.com/dromara/dante-cloud
|
|
|
|
|
~ 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/dromara/dante-cloud
|
|
|
|
|
~ 6.若您的项目无法满足以上几点,可申请商业授权
|
|
|
|
|
-->
|
|
|
|
|
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
<parent>
|
2022-07-30 17:22:19 +08:00
|
|
|
|
<groupId>cn.herodotus.dante</groupId>
|
2020-05-22 16:41:48 +08:00
|
|
|
|
<artifactId>dependencies</artifactId>
|
2023-11-23 21:44:45 +08:00
|
|
|
|
<version>3.1.6.0</version>
|
2020-05-22 16:41:48 +08:00
|
|
|
|
<relativePath>dependencies/pom.xml</relativePath>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</parent>
|
|
|
|
|
|
2022-07-30 17:22:19 +08:00
|
|
|
|
<artifactId>dante-cloud</artifactId>
|
2020-12-31 16:41:29 +08:00
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
2022-07-30 17:22:19 +08:00
|
|
|
|
<name>dante-cloud</name>
|
|
|
|
|
<description>Top Dante project pom.xml file</description>
|
2020-12-31 16:41:29 +08:00
|
|
|
|
|
2021-04-28 23:38:34 +08:00
|
|
|
|
<!-- ${basedir} 项目根目录 -->
|
|
|
|
|
<!-- ${project.build.directory} 构建目录,缺省为target -->
|
|
|
|
|
<!-- ${project.build.outputDirectory} 构建过程输出目录,缺省为target/classes -->
|
|
|
|
|
<!-- ${project.build.finalName} 产出物名称,缺省为${project.artifactId}-${project.version} -->
|
|
|
|
|
<!-- ${project.packaging} 打包类型,缺省为jar -->
|
|
|
|
|
<!-- ${project.xxx} 当前pom文件的任意节点的内容 如project.artifactId -->
|
|
|
|
|
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<properties>
|
2022-11-04 18:02:59 +08:00
|
|
|
|
<java.version>17</java.version>
|
2020-12-29 19:23:54 +08:00
|
|
|
|
<resource.delimiter>@</resource.delimiter>
|
|
|
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
2021-04-24 16:55:39 +08:00
|
|
|
|
|
2021-04-28 23:38:34 +08:00
|
|
|
|
<!--配置参数-->
|
|
|
|
|
<!--为了便于Docker的构建,减少上下文影响,将所有Docker资源放置在同一个目录中进行构建-->
|
|
|
|
|
<docker.build.directory>../../configurations/docker/context/target</docker.build.directory>
|
2021-05-14 21:08:56 +08:00
|
|
|
|
<docker.resource.name>${project.build.finalName}.${project.packaging}</docker.resource.name>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<!-- 所有的子项目默认依赖 -->
|
|
|
|
|
<dependencies>
|
2021-04-24 16:55:39 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
</dependency>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<!-- 管理依赖版本号,子项目不会默认依赖 -->
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
2021-04-24 16:55:39 +08:00
|
|
|
|
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
<!-- 环境 -->
|
|
|
|
|
<profiles>
|
|
|
|
|
<!-- 开发 -->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>development</id>
|
2021-09-29 18:17:43 +08:00
|
|
|
|
<activation>
|
|
|
|
|
<!--默认激活配置-->
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
</activation>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<properties>
|
|
|
|
|
<!--当前环境-->
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<profile>development</profile>
|
|
|
|
|
<database>postgresql</database>
|
|
|
|
|
<!--基础设施:tencent、alibaba、spring-->
|
2023-01-02 14:58:42 +08:00
|
|
|
|
<facility>alibaba</facility>
|
2021-04-30 10:35:04 +08:00
|
|
|
|
<!--代码构建控制-->
|
|
|
|
|
<!--跳过构建源代码包-->
|
|
|
|
|
<skip.build.source.package>false</skip.build.source.package>
|
2021-04-28 23:38:34 +08:00
|
|
|
|
<!--不copy代码包到docker构建目录-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<skip.copy.docker.resource>true</skip.copy.docker.resource>
|
2021-04-30 10:35:04 +08:00
|
|
|
|
<!--不执行git commit 构建-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<skip.build.git.commit.info>true</skip.build.git.commit.info>
|
2023-03-18 14:31:09 +08:00
|
|
|
|
<!--Spring Cloud Alibaba配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
|
2023-08-21 18:20:24 +08:00
|
|
|
|
<alibaba.namespace></alibaba.namespace>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--Spring Cloud Alibaba配置中心地址-->
|
|
|
|
|
<alibaba.config.server-addr>192.168.101.10:8848</alibaba.config.server-addr>
|
|
|
|
|
<!--Spring Cloud Alibaba服务发现地址-->
|
|
|
|
|
<alibaba.discovery.server-addr>192.168.101.10:8848</alibaba.discovery.server-addr>
|
|
|
|
|
<alibaba.sentinel.server-addr>192.168.101.10:8858</alibaba.sentinel.server-addr>
|
2023-03-18 14:31:09 +08:00
|
|
|
|
<tencent.polaris.namespace>default</tencent.polaris.namespace>
|
2023-03-16 18:48:20 +08:00
|
|
|
|
<!--Spring Cloud Tencent 配置 【(8091)grpc/tcp,默认注册中心端口;(8090)http/tcp,默认注册中心端口】-->
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<tencent.polaris.server-addr>192.168.101.10:8091</tencent.polaris.server-addr>
|
2023-03-16 18:48:20 +08:00
|
|
|
|
<!--Spring Cloud Tencent Config 配置 【(8093)grpc/tcp,默认配置中心端口】-->
|
|
|
|
|
<tencent.polaris.config-addr>192.168.101.10:8093</tencent.polaris.config-addr>
|
2022-12-03 22:17:06 +08:00
|
|
|
|
<!--Spring Cloud Tencent 本地缓存目录-->
|
2023-04-30 22:39:02 +08:00
|
|
|
|
<tencent.polaris.local.dir>./configurations/backup/tencent</tencent.polaris.local.dir>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<!-- Docker -->
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<profile>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<id>docker</id>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<properties>
|
|
|
|
|
<!--当前环境-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<profile>docker</profile>
|
|
|
|
|
<!--数据库类型-->
|
|
|
|
|
<database>postgresql</database>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--基础设施:tencent、alibaba、spring-->
|
|
|
|
|
<facility>tencent</facility>
|
2021-04-30 10:35:04 +08:00
|
|
|
|
<!--代码构建控制-->
|
|
|
|
|
<!--跳过构建源代码包-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<skip.build.source.package>true</skip.build.source.package>
|
2021-04-28 23:38:34 +08:00
|
|
|
|
<!--不copy代码包到docker构建目录-->
|
2021-04-30 10:35:04 +08:00
|
|
|
|
<skip.copy.docker.resource>false</skip.copy.docker.resource>
|
|
|
|
|
<!--不执行git commit 构建-->
|
|
|
|
|
<skip.build.git.commit.info>false</skip.build.git.commit.info>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--Spring Cloud Alibaba配置中心地址-->
|
|
|
|
|
<alibaba.config.server-addr>192.168.101.10:8848</alibaba.config.server-addr>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<!--Spring Cloud Alibaba配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
|
|
|
|
|
<alibaba.namespace></alibaba.namespace>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--Spring Cloud Alibaba服务发现地址-->
|
|
|
|
|
<alibaba.discovery.server-addr>192.168.101.10:8848</alibaba.discovery.server-addr>
|
|
|
|
|
<alibaba.sentinel.server-addr>192.168.101.10:8858</alibaba.sentinel.server-addr>
|
2023-03-16 18:48:20 +08:00
|
|
|
|
<!--Spring Cloud Tencent 配置 【(8091)grpc/tcp,默认注册中心端口;(8090)http/tcp,默认注册中心端口】-->
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<tencent.polaris.server-addr>192.168.101.10:8091</tencent.polaris.server-addr>
|
2023-03-16 18:48:20 +08:00
|
|
|
|
<!--Spring Cloud Tencent Config 配置 【(8093)grpc/tcp,默认配置中心端口】-->
|
|
|
|
|
<tencent.polaris.config-addr>192.168.101.10:8093</tencent.polaris.config-addr>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<tencent.polaris.namespace>default</tencent.polaris.namespace>
|
2022-12-03 22:17:06 +08:00
|
|
|
|
<!--Spring Cloud Tencent 本地缓存目录-->
|
2023-04-30 22:39:02 +08:00
|
|
|
|
<tencent.polaris.local.dir>./configurations/backup/tencent</tencent.polaris.local.dir>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<!-- 生产 -->
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<profile>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<id>production</id>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
<properties>
|
2021-09-29 01:51:08 +08:00
|
|
|
|
<!--当前环境-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<profile>production</profile>
|
|
|
|
|
<database>mysql8</database>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--基础设施:tencent、alibaba、spring-->
|
|
|
|
|
<facility>tencent</facility>
|
2021-04-30 10:35:04 +08:00
|
|
|
|
<!--代码构建控制-->
|
|
|
|
|
<!--跳过构建源代码包-->
|
|
|
|
|
<skip.build.source.package>false</skip.build.source.package>
|
2021-04-28 23:38:34 +08:00
|
|
|
|
<!--不copy代码包到docker构建目录-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<skip.copy.docker.resource>true</skip.copy.docker.resource>
|
2021-04-30 10:35:04 +08:00
|
|
|
|
<!--不执行git commit 构建-->
|
|
|
|
|
<skip.build.git.commit.info>false</skip.build.git.commit.info>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--Spring Cloud Alibaba配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<!--<alibaba.namespace>8fdcc073-2e51-4722-8274-3f5b76362bb8</alibaba.namespace>-->
|
2023-03-18 14:31:09 +08:00
|
|
|
|
<alibaba.namespace></alibaba.namespace>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<!--Spring Cloud Alibaba配置中心地址-->
|
|
|
|
|
<alibaba.config.server-addr>192.168.101.10:8848</alibaba.config.server-addr>
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<!--Spring Cloud Alibaba服务发现地址-->
|
|
|
|
|
<alibaba.discovery.server-addr>192.168.101.10:8848</alibaba.discovery.server-addr>
|
|
|
|
|
<alibaba.sentinel.server-addr>192.168.101.10:8858</alibaba.sentinel.server-addr>
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<tencent.polaris.namespace>default</tencent.polaris.namespace>
|
2023-03-16 18:48:20 +08:00
|
|
|
|
<!--Spring Cloud Tencent 配置 【(8091)grpc/tcp,默认注册中心端口;(8090)http/tcp,默认注册中心端口】-->
|
2022-12-01 16:05:27 +08:00
|
|
|
|
<tencent.polaris.server-addr>192.168.101.10:8091</tencent.polaris.server-addr>
|
2023-03-16 18:48:20 +08:00
|
|
|
|
<!--Spring Cloud Tencent Config 配置 【(8093)grpc/tcp,默认配置中心端口】-->
|
|
|
|
|
<tencent.polaris.config-addr>192.168.101.10:8093</tencent.polaris.config-addr>
|
2022-12-03 22:17:06 +08:00
|
|
|
|
<!--Spring Cloud Tencent 本地缓存目录-->
|
2023-04-30 22:39:02 +08:00
|
|
|
|
<tencent.polaris.local.dir>./configurations/backup/tencent</tencent.polaris.local.dir>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</properties>
|
2022-12-13 23:48:20 +08:00
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
2023-10-02 15:44:31 +08:00
|
|
|
|
|
2023-11-21 23:17:20 +08:00
|
|
|
|
<build>
|
|
|
|
|
<pluginManagement>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
<version>${maven-antrun-plugin.version}</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>${skip.copy.docker.resource}</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>delete-jar-file</id>
|
|
|
|
|
<phase>pre-clean</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>
|
|
|
|
|
<delete file="${docker.build.directory}/${docker.resource.name}"/>
|
|
|
|
|
</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>prepare-docker-resource</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>
|
|
|
|
|
<!--jar包保存位置 -->
|
|
|
|
|
<copy todir="${docker.build.directory}">
|
|
|
|
|
<fileset dir="${project.basedir}/target">
|
|
|
|
|
<include name="${docker.resource.name}"/>
|
|
|
|
|
</fileset>
|
|
|
|
|
</copy>
|
|
|
|
|
</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.github.git-commit-id</groupId>
|
|
|
|
|
<artifactId>git-commit-id-maven-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>${skip.build.git.commit.info}</skip>
|
|
|
|
|
<!-- 检查的仓库根目录,${project.basedir}:项目根目录,即包含pom.xml文件的目录 -->
|
|
|
|
|
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
|
|
|
|
|
<!-- 生成git属性文件,默认false:不生成 -->
|
|
|
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
|
|
|
<dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
|
|
|
|
|
<gitDescribe>
|
|
|
|
|
<skip>false</skip>
|
|
|
|
|
<always>false</always>
|
|
|
|
|
<dirty>-dirty</dirty>
|
|
|
|
|
</gitDescribe>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</pluginManagement>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skipSource>${skip.build.source.package}</skipSource>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
2023-10-02 15:44:31 +08:00
|
|
|
|
<modules>
|
|
|
|
|
<module>dependencies</module>
|
|
|
|
|
<module>modules</module>
|
|
|
|
|
<module>packages</module>
|
|
|
|
|
<module>platform</module>
|
|
|
|
|
<module>services</module>
|
|
|
|
|
</modules>
|
2020-02-28 07:58:15 +08:00
|
|
|
|
</project>
|