加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 7.94 KB
一键复制 编辑 原始数据 按行查看 历史
soler 提交于 2019-11-19 02:57 . 修改docker打包配置
<?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.opencloud</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>3.0.0</version>
<modules>
<module>components</module>
<module>platform</module>
<module>services</module>
</modules>
<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>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-dockerfile-plugin.version>1.4.10</maven-dockerfile-plugin.version>
<spring-boot.version>2.1.6.RELEASE</spring-boot.version>
<spring-boot-admin.version>2.1.6</spring-boot-admin.version>
<spring-cloud.version>Greenwich.SR2</spring-cloud.version>
<alibaba.cloud.version>0.9.0.RELEASE</alibaba.cloud.version>
<alibaba.fastjson.version>1.2.60</alibaba.fastjson.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>
<mybatis-plus.version>3.1.1</mybatis-plus.version>
<hutool.version>4.1.19</hutool.version>
<com.google.zxing.version>3.1.0</com.google.zxing.version>
<swagger2.version>2.9.2</swagger2.version>
<swagger-bootstrap-ui.version>1.9.5</swagger-bootstrap-ui.version>
<oracle.version>10.2.0.4.0</oracle.version>
<!--自定义版本-->
<opencloud.common.version>3.0.0-SNAPSHOT</opencloud.common.version>
<opencloud.base-client.version>3.0.0-SNAPSHOT</opencloud.base-client.version>
<opencloud.msg-client.version>3.0.0-SNAPSHOT</opencloud.msg-client.version>
<opencloud.bpm-client.version>3.0.0-SNAPSHOT</opencloud.bpm-client.version>
<opencloud.task-client.version>3.0.0-SNAPSHOT</opencloud.task-client.version>
<!--镜像前缀-->
<docker.image.prefix>open.cloud</docker.image.prefix>
</properties>
<!--nexus 私有仓库发布地址 -->
<distributionManagement>
<!--maven的settings.xml文件中设置<server>标签-->
<repository>
<id>open-cloud-releases</id>
<url>http://39.106.187.125:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>open-cloud-snapshots</id>
<url>http://39.106.187.125:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<!-- 环境 -->
<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>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${alibaba.cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化