You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
6.0 KiB
XML
160 lines
6.0 KiB
XML
<?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">
|
|
<parent>
|
|
<artifactId>waynboot</artifactId>
|
|
<groupId>com.wayn</groupId>
|
|
<version>1.1.0</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>waynboot-admin-api</artifactId>
|
|
|
|
<properties>
|
|
<aliyun-docker-namespace>wayn111</aliyun-docker-namespace>
|
|
<main-class>com.wayn.AdminApplication</main-class>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-high-level-client</artifactId>
|
|
<version>7.4.2</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.elasticsearch</groupId>
|
|
<artifactId>elasticsearch</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-client</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.elasticsearch</groupId>
|
|
<artifactId>elasticsearch</artifactId>
|
|
<version>7.11.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-client</artifactId>
|
|
<version>7.4.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.wayn</groupId>
|
|
<artifactId>waynboot-common</artifactId>
|
|
<version>1.1.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.elasticsearch</groupId>
|
|
<artifactId>elasticsearch</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-client</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.elasticsearch.client</groupId>
|
|
<artifactId>elasticsearch-rest-high-level-client</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.wayn</groupId>
|
|
<artifactId>waynboot-message-core</artifactId>
|
|
<version>1.1.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-amqp</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${spring-boot.version}</version>
|
|
<configuration>
|
|
<!-- 指定该Main Class为全局的唯一入口 -->
|
|
<mainClass>com.wayn.AdminApplication</mainClass>
|
|
<layout>ZIP</layout>
|
|
<!-- <commandlineArguments>-->
|
|
<!-- -parameters-->
|
|
<!-- </commandlineArguments>-->
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.google.cloud.tools</groupId>
|
|
<artifactId>jib-maven-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
<configuration>
|
|
<!--配置基本镜像-->
|
|
<from>
|
|
<image>${docker-from-image-name}</image>
|
|
</from>
|
|
<!--配置最终推送的地址,仓库名,镜像名-->
|
|
<to>
|
|
<image>registry.cn-shanghai.aliyuncs.com/${aliyun-docker-namespace}/${project.artifactId}
|
|
</image>
|
|
<tags>
|
|
<tag>${project.version}</tag>
|
|
<tag>latest</tag>
|
|
</tags>
|
|
<auth>
|
|
<username>${docker-username}</username>
|
|
<password>${docker-passwqrd}</password>
|
|
</auth>
|
|
</to>
|
|
<container>
|
|
<mainClass>${main-class}</mainClass>
|
|
<jvmFlags>
|
|
<jvmFlag>-Xms812m</jvmFlag>
|
|
<jvmFlag>-Xmx812m</jvmFlag>
|
|
<jvmFlag>-Xss512k</jvmFlag>
|
|
<jvmFlag>-XX:+HeapDumpOnOutOfMemoryError</jvmFlag>
|
|
<jvmFlag>-XX:HeapDumpPath=./</jvmFlag>
|
|
</jvmFlags>
|
|
</container>
|
|
</configuration>
|
|
|
|
<!-- 绑定到maven lifecicle-->
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project>
|