mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-21 13:15:14 +00:00
105 lines
4.0 KiB
XML
105 lines
4.0 KiB
XML
<?xml version="1.0"?>
|
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<!-- maven坐标 -->
|
|
<artifactId>udf-eureka-config-server</artifactId>
|
|
<name>udf-eureka-config-server</name>
|
|
<packaging>jar</packaging>
|
|
<url>http://itkk.org:81</url>
|
|
<!-- 父依赖 -->
|
|
<parent>
|
|
<groupId>org.itkk.udf</groupId>
|
|
<artifactId>udf-server</artifactId>
|
|
<version>1.0</version>
|
|
</parent>
|
|
<!-- 参数 -->
|
|
<properties>
|
|
<server.port>9001</server.port>
|
|
<management.port>8001</management.port>
|
|
</properties>
|
|
<!-- 依赖 -->
|
|
<dependencies>
|
|
<!-- spring-boot-starter-security -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
<!-- spring cloud starter eureka server -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
|
|
</dependency>
|
|
<!-- spring-cloud-config-server 配置服务器 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-config-server</artifactId>
|
|
</dependency>
|
|
<!-- spring-boot-devtools -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<!-- udf-starter-core -->
|
|
<dependency>
|
|
<groupId>org.itkk.udf</groupId>
|
|
<artifactId>udf-starter-core</artifactId>
|
|
</dependency>
|
|
<!-- udf-starter-exception-alert -->
|
|
<dependency>
|
|
<groupId>org.itkk.udf</groupId>
|
|
<artifactId>udf-starter-exception-alert</artifactId>
|
|
</dependency>
|
|
<!-- udf-starter-amqp-rabbitmq -->
|
|
<dependency>
|
|
<groupId>org.itkk.udf</groupId>
|
|
<artifactId>udf-starter-amqp-rabbitmq</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<!-- 构建 -->
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.basedir}/src/main/resources/</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<!-- package -->
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${springboot.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- docker -->
|
|
<plugin>
|
|
<groupId>com.spotify</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>${docker-maven-plugin.version}</version>
|
|
<configuration>
|
|
<imageName>${docker.registry.host}/${project.groupId}/${project.artifactId}:latest</imageName>
|
|
<baseImage>${docker.java.base.image}</baseImage>
|
|
<maintainer>${docker.maintainer}</maintainer>
|
|
<exposes>${server.port}</exposes>
|
|
<cmd></cmd>
|
|
<entryPoint>["java","-jar","/${project.build.finalName}.jar"]</entryPoint>
|
|
<resources>
|
|
<resource>
|
|
<directory>${project.build.directory}</directory>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|