北尚诉办子模块
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.

133 lines
5.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 http://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>2.1.7.RELEASE</version>
</parent>
<groupId>com.esua.epdc.shibei</groupId>
<artifactId>epdc-cloud-parent-shibei</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<description>市北党建e家父模块</description>
<properties>
<docker.plugin.version>1.1.1</docker.plugin.version>
<docker.repostory>47.104.85.99:9002</docker.repostory>
<dockerfile-maven-plugin.version>1.4.13</dockerfile-maven-plugin.version>
<docker.tag>prod</docker.tag>
<docker.repository.prefix>registry-vpc.cn-qingdao.aliyuncs.com/esua-epdc-shibei/</docker.repository.prefix>
<flyway-core.version>5.2.4</flyway-core.version>
<feign-httpclient.version>10.3.0</feign-httpclient.version>
<orika-spring-boot-starter.version>1.8.0</orika-spring-boot-starter.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring.cloud.version>Greenwich.RELEASE</spring.cloud.version>
<spring-cloud-alibaba-dependencies.version>2.1.0.RELEASE</spring-cloud-alibaba-dependencies.version>
<swagger.version>2.7.0</swagger.version>
<seata.version>0.8.0</seata.version>
<server.port>9508</server.port>
<spring-cloud-starter-alibaba-nacos-config.version>2.1.1.RELEASE
</spring-cloud-starter-alibaba-nacos-config.version>
<epdc-cloud-commons.version>1.0.0</epdc-cloud-commons.version>
<epdc-cloud-client.version>1.0.0</epdc-cloud-client.version>
</properties>
<dependencyManagement>
<dependencies>
<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-dependencies.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-all</artifactId>
<version>${seata.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<version>${spring-cloud-starter-alibaba-nacos-config.version}</version>
</dependency>
<dependency>
<groupId>net.rakugakibox.spring.boot</groupId>
<artifactId>orika-spring-boot-starter</artifactId>
<version>${orika-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>${flyway-core.version}</version>
</dependency>
<!-- 替换Feign原生httpclient -->
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
<version>${feign-httpclient.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>${dockerfile-maven-plugin.version}</version>
<executions>
<execution>
<id>default</id>
<goals>
<!--如果package时不想用docker打包,就注释掉这个goal-->
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
<configuration>
<finalName>${project.artifactId}</finalName>
<username>elink201801</username>
<password>elink833066</password>
<repository>${docker.repository.prefix}${project.artifactId}</repository>
<tag>${docker.tag}</tag>
<buildArgs>
<!--提供参数向Dockerfile传递-->
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
<JAR_NAME>${project.artifactId}</JAR_NAME>
<SERVER_PORT>${server.port}</SERVER_PORT>
</buildArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>