94 lines
3.4 KiB
XML
94 lines
3.4 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>tourism-center</artifactId>
|
|
<groupId>com.zlt</groupId>
|
|
<version>6.0.0</version>
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>tourism-open-api</artifactId>
|
|
<name>cultural-tourism-open-api</name>
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<properties>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.zlt</groupId>
|
|
<artifactId>tourism-core</artifactId>
|
|
<version>6.0.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.spotify</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
<imageTags>
|
|
<imageTag>2023091902</imageTag>
|
|
</imageTags>
|
|
<forceTags>true</forceTags>
|
|
<!-- <dockerHost>${docker.host}</dockerHost>-->
|
|
<!-- <baseImage>${docker.baseImage}</baseImage>-->
|
|
<!-- <volumes>${docker.volumes}</volumes>-->
|
|
<env>
|
|
<JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
|
|
</env>
|
|
<entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar
|
|
/${project.build.finalName}.jar"]
|
|
</entryPoint>
|
|
<!--是否推送到docker私有仓库-->
|
|
<!-- <pushImage>true</pushImage>
|
|
<registryUrl>https://hub.ikingtec.com:5000</registryUrl>-->
|
|
<resources>
|
|
<resource>
|
|
<targetPath>/</targetPath>
|
|
<directory>${project.build.directory}</directory>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
<finalName>${project.artifactId}-release</finalName>
|
|
</build>
|
|
</project>
|