You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
3.8 KiB
124 lines
3.8 KiB
<?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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.neo</groupId>
|
|
<artifactId>spring-boot-docker</artifactId>
|
|
<version>1.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>spring-boot-docker</name>
|
|
<description>Demo project for Spring Boot</description>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>2.0.0.RELEASE</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<java.version>1.8</java.version>
|
|
<docker.image.prefix>springboot</docker.image.prefix>
|
|
<!--<docker.repostory>120.78.76.88:80</docker.repostory>-->
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- The client -->
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient</artifactId>
|
|
<version>0.9.0</version>
|
|
</dependency>
|
|
<!-- Hotspot JVM metrics-->
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient_hotspot</artifactId>
|
|
<version>0.9.0</version>
|
|
</dependency>
|
|
<!-- Exposition HTTPServer-->
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient_httpserver</artifactId>
|
|
<version>0.9.0</version>
|
|
</dependency>
|
|
<!-- Pushgateway exposition-->
|
|
<dependency>
|
|
<groupId>io.prometheus</groupId>
|
|
<artifactId>simpleclient_pushgateway</artifactId>
|
|
<version>0.9.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!--<plugin>-->
|
|
<!--<groupId>com.spotify</groupId>-->
|
|
<!--<artifactId>dockerfile-maven-plugin</artifactId>-->
|
|
<!--<executions>-->
|
|
<!--<execution>-->
|
|
<!--<id>default</id>-->
|
|
<!--<goals>-->
|
|
<!--<!–如果package时不想用docker打包,就注释掉这个goal–>-->
|
|
<!--<goal>build</goal>-->
|
|
<!--<goal>push</goal>-->
|
|
<!--</goals>-->
|
|
<!--</execution>-->
|
|
<!--</executions>-->
|
|
<!--<configuration>-->
|
|
<!--<username>admin</username>-->
|
|
<!--<password>Harbor12345</password>-->
|
|
<!--<repository>${docker.repostory}/test/${project.artifactId}</repository>-->
|
|
<!--<tag>${project.version}</tag>-->
|
|
<!--<buildArgs>-->
|
|
<!--<!–提供参数向Dockerfile传递–>-->
|
|
<!--<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>-->
|
|
<!--</buildArgs>-->
|
|
<!--</configuration>-->
|
|
<!--</plugin>-->
|
|
|
|
<!-- Docker maven plugin -->
|
|
<!--<plugin>-->
|
|
<!--<groupId>com.spotify</groupId>-->
|
|
<!--<artifactId>docker-maven-plugin</artifactId>-->
|
|
<!--<version>1.0.0</version>-->
|
|
<!--<configuration>-->
|
|
<!--<imageName>${docker.image.prefix}/${project.artifactId}</imageName>-->
|
|
<!--<dockerDirectory>src/main/docker</dockerDirectory>-->
|
|
<!--<resources>-->
|
|
<!--<resource>-->
|
|
<!--<targetPath>/</targetPath>-->
|
|
<!--<directory>${project.build.directory}</directory>-->
|
|
<!--<include>${project.build.finalName}.jar</include>-->
|
|
<!--</resource>-->
|
|
<!--</resources>-->
|
|
<!--</configuration>-->
|
|
<!--</plugin>-->
|
|
<!-- Docker maven plugin -->
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project>
|