<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<modelVersion>4.0.0</modelVersion>
|
<parent>
|
<groupId>com.panzhihua</groupId>
|
<artifactId>zhihuishequ</artifactId>
|
<version>1.0-SNAPSHOT</version>
|
</parent>
|
<groupId>com.panzhihua</groupId>
|
<artifactId>eureka_server</artifactId>
|
<version>0.0.1-SNAPSHOT</version>
|
<name>eureka_server</name>
|
<description>eureka注册中心</description>
|
|
|
|
<dependencies>
|
<dependency>
|
<groupId>org.springframework.cloud</groupId>
|
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.cloud</groupId>
|
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
|
</dependency>
|
|
<!--添加监控依赖包-->
|
<dependency>
|
<groupId>io.micrometer</groupId>
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<version>2.5.0</version>
|
<configuration>
|
<mainClass>com.panzhihua.eureka_server.EurekaServerApplication</mainClass>
|
</configuration>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
|
<plugin>
|
<groupId>com.spotify</groupId>
|
<artifactId>docker-maven-plugin</artifactId>
|
<version>1.2.0</version>
|
<configuration>
|
<imageName>registry.cn-chengdu.aliyuncs.com/panzhihua/eureka-server:v1</imageName>
|
<serverId></serverId>
|
<baseImage>java</baseImage>
|
<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
|
<resources>
|
<resource>
|
<targetPath>/</targetPath>
|
<directory>${project.build.directory}</directory>
|
<include>${project.build.finalName}.jar</include>
|
</resource>
|
</resources>
|
</configuration>
|
</plugin>
|
</plugins>
|
</build>
|
|
<repositories>
|
<repository>
|
<id>spring-snapshots</id>
|
<name>Spring Snapshots</name>
|
<url>https://repo.spring.io/snapshot</url>
|
<snapshots>
|
<enabled>true</enabled>
|
</snapshots>
|
</repository>
|
<repository>
|
<id>spring-milestones</id>
|
<name>Spring Milestones</name>
|
<url>https://repo.spring.io/milestone</url>
|
</repository>
|
</repositories>
|
|
</project>
|