2 changed files with 171 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||
# Created by .ignore support plugin (hsz.mobi) |
|||
### Java template |
|||
# Compiled class file |
|||
*.class |
|||
|
|||
# Log file |
|||
*.log |
|||
|
|||
# BlueJ files |
|||
*.ctxt |
|||
|
|||
# Mobile Tools for Java (J2ME) |
|||
.mtj.tmp/ |
|||
|
|||
# Package Files # |
|||
*.jar |
|||
*.war |
|||
*.nar |
|||
*.ear |
|||
*.zip |
|||
*.tar.gz |
|||
*.rar |
|||
|
|||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
|||
hs_err_pid* |
|||
.idea/ |
|||
*.iml |
|||
target/ |
|||
|
@ -0,0 +1,142 @@ |
|||
<?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> |
|||
<relativePath/> |
|||
</parent> |
|||
|
|||
<groupId>com.esua.epdc.yushan</groupId> |
|||
<artifactId>epdc-cloud-parent-yushan</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.cn-qingdao.aliyuncs.com/esua-epdc-yushan/</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> |
|||
<guava.version>26.0-jre</guava.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> |
|||
|
|||
<dependency> |
|||
<groupId>com.google.guava</groupId> |
|||
<artifactId>guava</artifactId> |
|||
<version>${guava.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_CONFIG>-Xmx256m -Xms256m -Xmn160m -Xss256k</JAR_CONFIG> |
|||
<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> |
Loading…
Reference in new issue