216 lines
8.6 KiB
XML
216 lines
8.6 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 https://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.3.12.RELEASE</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
<groupId>com.geedge</groupId>
|
|
<artifactId>cn-object-scheduler</artifactId>
|
|
<version>24.01</version>
|
|
<name>cn-object-scheduler</name>
|
|
<description>cn-object-scheduler</description>
|
|
<repositories>
|
|
<repository>
|
|
<id>nexus</id>
|
|
<name>Team Nexus Repository</name>
|
|
<url>http://192.168.40.153:8099/content/groups/public</url>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>nexus</id>
|
|
<name>Team Nexus Repository</name>
|
|
<url>http://192.168.40.153:8099/content/groups/public</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
<properties>
|
|
<java.version>11</java.version>
|
|
<guava.version>23.0</guava.version>
|
|
<hutool.version>5.7.7</hutool.version>
|
|
<active.record.version>4.9.01</active.record.version>
|
|
<mysql-connector-java.version>8.0.18</mysql-connector-java.version>
|
|
<starter.druid.version>1.1.22</starter.druid.version>
|
|
<docker.build>192.168.40.153</docker.build>
|
|
<docker.build.port>2375</docker.build.port>
|
|
<docker.registry>192.168.40.153</docker.registry>
|
|
<docker.registry.port>9080</docker.registry.port>
|
|
<docker.image.prefix>tsg/galaxy</docker.image.prefix>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<!--Springboot集成prometheus依赖-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/io.prometheus/simpleclient -->
|
|
<!-- https://mvnrepository.com/artifact/io.prometheus/simpleclient_common -->
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient_common</artifactId>
|
|
<version>0.16.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient_hotspot</artifactId>
|
|
<version>0.16.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient_servlet</artifactId>
|
|
<version>0.16.0</version>
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql-connector-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
<version>${starter.druid.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>${hutool.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jfinal</groupId>
|
|
<artifactId>activerecord</artifactId>
|
|
<version>${active.record.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.spotify</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>1.0.0</version>
|
|
<configuration>
|
|
<serverId>153-docker-repo</serverId>
|
|
<registryUrl>${docker.registry}:${docker.registry.port}</registryUrl>
|
|
<pushImage>true</pushImage>
|
|
<forceTags>true</forceTags>
|
|
<imageName>${docker.registry}:${docker.registry.port}/${docker.image.prefix}/${project.artifactId}
|
|
</imageName>
|
|
<dockerHost>http://${docker.build}:${docker.build.port}</dockerHost>
|
|
<dockerDirectory>docker</dockerDirectory>
|
|
<buildArgs>
|
|
<JDK_IMAGE>${docker.registry}:${docker.registry.port}/common/amazon-corretto:11.0.21.9.1
|
|
</JDK_IMAGE>
|
|
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
|
|
</buildArgs>
|
|
<imageTags>
|
|
<imageTag>v24.01</imageTag>
|
|
</imageTags>
|
|
<resources>
|
|
<resource>
|
|
<targetPath>/</targetPath>
|
|
<directory>${project.build.directory}</directory>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</resource>
|
|
<resource>
|
|
<targetPath>/config</targetPath>
|
|
<directory>config</directory>
|
|
</resource>
|
|
|
|
</resources>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>javax.activation</groupId>
|
|
<artifactId>activation</artifactId>
|
|
<version>1.1.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-toolchains-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>toolchain</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<toolchains>
|
|
<jdk>
|
|
<version>11</version>
|
|
<vendor>amazon</vendor>
|
|
</jdk>
|
|
</toolchains>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<encoding>utf-8</encoding>
|
|
<useDefaultDelimiters>true</useDefaultDelimiters>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.19.1</version>
|
|
<configuration>
|
|
<skipTests>true</skipTests> <!-- 默认关掉单元测试-->
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|