You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
171 lines
6.7 KiB
171 lines
6.7 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
<modelVersion>4.0.0</modelVersion> |
|
<parent> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-parent</artifactId> |
|
<version>3.1.0</version> |
|
</parent> |
|
<groupId>com.ds</groupId> |
|
<artifactId>dashan-cloud</artifactId> |
|
<version>0.0.1-SNAPSHOT</version> |
|
<packaging>pom</packaging> |
|
<name>dashan-cloud</name> |
|
<description>dashan-cloud</description> |
|
<modules> |
|
<module>ds-gateway</module> |
|
<module>ds-timer-task</module> |
|
<module>ds-commons</module> |
|
<module>ds-modules</module> |
|
</modules> |
|
<properties> |
|
<java.version>17</java.version> |
|
<maven.compiler.source>17</maven.compiler.source> |
|
<maven.compiler.target>17</maven.compiler.target> |
|
<spring-boot.version>3.1.0</spring-boot.version> |
|
<spring-cloud.version>2022.0.2</spring-cloud.version> |
|
<spring-cloud-alibaba.version>2022.0.0.0-RC2</spring-cloud-alibaba.version> |
|
<springdoc.version>2.1.0</springdoc.version> |
|
<knife4j.version>4.3.0</knife4j.version> |
|
<mysql.version>8.0.24</mysql.version> |
|
<mybatisplus.version>3.5.3.2</mybatisplus.version> |
|
<velocity.version>2.3</velocity.version> |
|
</properties> |
|
|
|
<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>org.springframework.cloud</groupId> |
|
<artifactId>spring-cloud-dependencies</artifactId> |
|
<version>${spring-cloud.version}</version> |
|
<type>pom</type> |
|
<scope>import</scope> |
|
</dependency> |
|
<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>mysql</groupId> |
|
<artifactId>mysql-connector-java</artifactId> |
|
<version>${mysql.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>com.baomidou</groupId> |
|
<artifactId>mybatis-plus-boot-starter</artifactId> |
|
<version>${mybatisplus.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>com.baomidou</groupId> |
|
<artifactId>mybatis-plus-generator</artifactId> |
|
<version>${mybatisplus.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.apache.velocity</groupId> |
|
<artifactId>velocity-engine-core</artifactId> |
|
<version>${velocity.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.springdoc</groupId> |
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
|
<version>${springdoc.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.springdoc</groupId> |
|
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId> |
|
<version>${springdoc.version}</version> |
|
</dependency> |
|
<dependency> |
|
<groupId>com.github.xiaoymin</groupId> |
|
<artifactId>knife4j-openapi3-spring-boot-starter</artifactId> |
|
<version>${knife4j.version}</version> |
|
</dependency> |
|
</dependencies> |
|
</dependencyManagement> |
|
|
|
<build> |
|
<resources> |
|
<resource> |
|
<directory>src/main/resources</directory> |
|
<filtering>true</filtering> |
|
</resource> |
|
</resources> |
|
<plugins> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-compiler-plugin</artifactId> |
|
<configuration> |
|
<source>${java.version}</source> |
|
<target>${java.version}</target> |
|
<encoding>${project.build.sourceEncoding}</encoding> |
|
</configuration> |
|
</plugin> |
|
</plugins> |
|
<pluginManagement> |
|
<plugins> |
|
<plugin> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-maven-plugin</artifactId> |
|
<version>${spring-boot.version}</version> |
|
<executions> |
|
<execution> |
|
<goals> |
|
<goal>repackage</goal> |
|
</goals> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
</plugins> |
|
</pluginManagement> |
|
</build> |
|
|
|
<!--配置测试开发生产环境--> |
|
<profiles> |
|
<profile> |
|
<!--开发环境--> |
|
<id>dev</id> |
|
<!-- 加了这个,默认选中 --> |
|
<activation> |
|
<activeByDefault>true</activeByDefault> |
|
</activation> |
|
<properties> |
|
<activatedProperties>dev</activatedProperties> |
|
<!-- dev对应的命名空间id 默认public 为空 --> |
|
<nacosNamespace></nacosNamespace> |
|
<nacosAddress>http://server:8848</nacosAddress> |
|
</properties> |
|
</profile> |
|
<profile> |
|
<!--测试环境--> |
|
<id>test</id> |
|
<properties> |
|
<activatedProperties>test</activatedProperties> |
|
<!-- test对应的命名空间id --> |
|
<nacosNamespace>ca82f95e-8b1b-4c59-b12e-035444e8c454</nacosNamespace> |
|
<!-- test环境对应的nacos地址 --> |
|
<nacosAddress>http://server:8848</nacosAddress> |
|
</properties> |
|
</profile> |
|
<!--生产环境--> |
|
<profile> |
|
<id>prod</id> |
|
<properties> |
|
<activatedProperties>prod</activatedProperties> |
|
<!-- prod对应的命名空间id --> |
|
<nacosNamespace>7c2f9c5d-88e9-449d-a78e-bcea0e7ada59</nacosNamespace> |
|
<nacosAddress>http://server:8848</nacosAddress> |
|
</properties> |
|
</profile> |
|
</profiles> |
|
</project>
|
|
|