Files

117 lines
4.4 KiB
XML
Raw Permalink Normal View History

2024-06-02 10:24:04 +08:00
<?xml version="1.0" encoding="UTF-8"?>
2024-05-31 18:35:05 +08:00
<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>mysql-data</artifactId>
2024-06-02 10:24:04 +08:00
<groupId>com.njcn</groupId>
2024-05-31 18:35:05 +08:00
<version>1.0.0</version>
</parent>
2024-06-02 10:24:04 +08:00
<modelVersion>4.0.0</modelVersion>
2024-05-31 18:35:05 +08:00
<artifactId>mysql-target</artifactId>
2024-06-02 10:24:04 +08:00
2024-05-31 18:35:05 +08:00
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--docker仓库地址-->
<docker.server.url>192.168.1.83</docker.server.url>
<!--docker远程守护进程的url-->
<docker.url>http://${docker.server.url}:2375</docker.url>
<!--docker远程harborurl-->
<docker.repostory>${docker.server.url}:8090</docker.repostory>
<!--docker远程项目仓库名-->
<docker.registry.name>njcn</docker.registry.name>
<docker.operate>site</docker.operate>
</properties>
<dependencies>
2024-06-02 10:24:04 +08:00
<!--oracle数据源-->
2024-05-31 18:35:05 +08:00
<dependency>
<groupId>com.njcn</groupId>
<artifactId>mysql-source</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
2024-06-02 10:24:04 +08:00
<finalName>mysql-target</finalName>
2024-05-31 18:35:05 +08:00
<plugins>
2024-06-02 10:24:04 +08:00
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
2024-05-31 18:35:05 +08:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
2024-06-02 10:24:04 +08:00
<version>3.8.1</version>
2024-05-31 18:35:05 +08:00
<configuration>
2024-06-02 10:24:04 +08:00
<source>1.8</source>
<target>1.8</target>
<skip>true</skip>
2024-05-31 18:35:05 +08:00
</configuration>
</plugin>
<plugin>
2024-06-02 10:24:04 +08:00
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
2024-05-31 18:35:05 +08:00
<executions>
<execution>
2024-06-02 10:24:04 +08:00
<id>attach-sources</id>
2024-05-31 18:35:05 +08:00
<goals>
2024-06-02 10:24:04 +08:00
<goal>jar-no-fork</goal>
2024-05-31 18:35:05 +08:00
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
2024-06-02 10:24:04 +08:00
<version>1.0.0</version>
2024-05-31 18:35:05 +08:00
<executions>
<execution>
<id>build-image</id>
<phase>${docker.operate}</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<!--<serverId>36dockerHarbor</serverId>-->
<registryUrl>http://${docker.repostory}</registryUrl>
<!-- 镜像名称 -->
<imageName>${docker.repostory}/${docker.registry.name}/${project.artifactId}</imageName>
<imageTags>
<imageTag>latest</imageTag>
</imageTags>
<dockerHost>${docker.url}</dockerHost>
<dockerDirectory>${basedir}/</dockerDirectory>
<resources>
<resource>
<targetPath>/ROOT</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
</project>