Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
pom.xml 8.34 KB
Copy Edit Web IDE Raw Blame History
soler authored 2019-05-05 15:00 . 修改swagger2版本
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.lyd</groupId>
<artifactId>open-cloud</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<description>微服务开放平台</description>
<modules>
<module>docs/generator</module>
<module>opencloud-common</module>
<module>opencloud-gateway</module>
<module>opencloud-upms</module>
<module>opencloud-msg</module>
<module>opencloud-bpm</module>
<module>opencloud-app</module>
<module>opencloud-scheduler</module>
</modules>
<!-- 环境 -->
<profiles>
<!-- 开发 -->
<profile>
<id>dev</id>
<activation>
<!--默认激活配置-->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!--当前环境-->
<profile.name>dev</profile.name>
<!--Nacos配置中心地址-->
<config.server-addr>127.0.0.1:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
<config.namespace></config.namespace>
<!--Nacos服务发现地址-->
<discovery.server-addr>127.0.0.1:8848</discovery.server-addr>
</properties>
</profile>
<!-- 测试 -->
<profile>
<id>test</id>
<properties>
<!--当前环境-->
<profile.name>test</profile.name>
<!--Nacos配置中心地址-->
<config.server-addr>172.17.207.82:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
<config.namespace></config.namespace>
<!--Nacos服务发现地址-->
<discovery.server-addr>172.17.207.82:8848</discovery.server-addr>
</properties>
</profile>
<!-- 生产 -->
<profile>
<id>online</id>
<properties>
<!--当前环境,生产环境为空-->
<profile.name></profile.name>
<!--Nacos配置中心地址-->
<config.server-addr>172.17.207.82:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
<config.namespace></config.namespace>
<!--Nacos服务发现地址-->
<discovery.server-addr>172.17.207.82:8848</discovery.server-addr>
</properties>
</profile>
</profiles>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<maven-compiler-plugin.version>3.6.2</maven-compiler-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
<maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
<spring-boot.version>2.0.8.RELEASE</spring-boot.version>
<spring-cloud.version>Finchley.SR2</spring-cloud.version>
<spring-security-oauth2.version>2.3.4.RELEASE</spring-security-oauth2.version>
<com.google.zxing.version>3.1.0</com.google.zxing.version>
<jjwt.version>0.9.1</jjwt.version>
<alibaba.cloud.version>0.2.1.RELEASE</alibaba.cloud.version>
<alibaba.fastjson.version>1.2.37</alibaba.fastjson.version>
<alibaba.druid.version>1.1.10</alibaba.druid.version>
<mybatis.version>1.3.1</mybatis.version>
<tk.mybatis.version>2.0.4</tk.mybatis.version>
<github.pagehelper.version>1.2.10</github.pagehelper.version>
<apache.commons-lang3.version>3.3.2</apache.commons-lang3.version>
<apache.commons-io.version>2.5</apache.commons-io.version>
<apache.commons.beanutils>1.9.3</apache.commons.beanutils>
<google.guava.version>19.0</google.guava.version>
<httpclient.version>4.5.2</httpclient.version>
<swagger2.version>2.7.0</swagger2.version>
<!--自定义版本-->
<opencloud.common.version>1.0.0-SNAPSHOT</opencloud.common.version>
<opencloud.gateway-client.version>1.0.0-SNAPSHOT</opencloud.gateway-client.version>
<opencloud.base-client.version>1.0.0-SNAPSHOT</opencloud.base-client.version>
<opencloud.auth-client.version>1.0.0-SNAPSHOT</opencloud.auth-client.version>
<opencloud.msg-client.version>1.0.0-SNAPSHOT</opencloud.msg-client.version>
<opencloud.bpm-client.version>1.0.0-SNAPSHOT</opencloud.bpm-client.version>
<opencloud.scheduler-client.version>1.0.0-SNAPSHOT</opencloud.scheduler-client.version>
</properties>
<!--公共依赖-->
<dependencies>
<!--监控-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!--测试依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!--自定义配置处理器,配置项提示-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<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>
</dependencies>
</dependencyManagement>
<build>
<resources>
<!-- 先指定 src/main/resources下所有文件及文件夹为资源文件 -->
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${maven.compiler.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<plugin>
<!--打包跳过测试-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

Comment ( 0 )

Sign in for post a comment