<?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.timejob</groupId>
|
<artifactId>timejob</artifactId>
|
<version>0.0.1-SNAPSHOT</version>
|
<name>timejob</name>
|
<description>分布式任务调度</description>
|
|
<dependencies>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.cloud</groupId>
|
<artifactId>spring-cloud-starter-config</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.cloud</groupId>
|
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>org.projectlombok</groupId>
|
<artifactId>lombok</artifactId>
|
<optional>true</optional>
|
</dependency>
|
<dependency>
|
<groupId>com.panzhihua</groupId>
|
<artifactId>common</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.netflix.hystrix</groupId>
|
<artifactId>hystrix-javanica</artifactId>
|
</dependency>
|
<!--xxjob-->
|
<!-- https://mvnrepository.com/artifact/com.githup.liuyanggithup/xxl-job-core -->
|
<!-- https://mvnrepository.com/artifact/com.xuxueli/xxl-job-core -->
|
<dependency>
|
<groupId>com.xuxueli</groupId>
|
<artifactId>xxl-job-core</artifactId>
|
<version>2.2.0</version>
|
</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.timejob.TimejobApplication</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/service-timejob: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-milestones</id>
|
<name>Spring Milestones</name>
|
<url>https://repo.spring.io/milestone</url>
|
</repository>
|
</repositories>
|
|
</project>
|