221 lines
9.0 KiB
XML
221 lines
9.0 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.zeodao</groupId>
|
|
<artifactId>task-reminder</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Multi-Group Task Reminder</name>
|
|
<description>多群企业微信任务提醒系统</description>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>2.7.14</version>
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<properties>
|
|
<java.version>21</java.version>
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Spring Boot Starter Web -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Configuration Processor -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Starter Test -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- HTTP Client -->
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
</dependency>
|
|
|
|
<!-- JSON Processing -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Logging -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-logging</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Lombok -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.30</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
|
|
<!-- Docker构建插件 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>docker-stop</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>docker</executable>
|
|
<arguments>
|
|
<argument>-H</argument>
|
|
<argument>tcp://172.22.222.6:2375</argument>
|
|
<argument>stop</argument>
|
|
<argument>task-reminder-app</argument>
|
|
</arguments>
|
|
<successCodes>
|
|
<successCode>0</successCode>
|
|
<successCode>1</successCode>
|
|
</successCodes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>docker-remove</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>docker</executable>
|
|
<arguments>
|
|
<argument>-H</argument>
|
|
<argument>tcp://172.22.222.6:2375</argument>
|
|
<argument>remove</argument>
|
|
<argument>task-reminder-app</argument>
|
|
</arguments>
|
|
<successCodes>
|
|
<successCode>0</successCode>
|
|
<successCode>1</successCode>
|
|
</successCodes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>docker-rmi</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>docker</executable>
|
|
<arguments>
|
|
<argument>-H</argument>
|
|
<argument>tcp://172.22.222.6:2375</argument>
|
|
<argument>rmi</argument>
|
|
<argument>172.22.222.100:28082/task-reminder:1.0.0</argument>
|
|
</arguments>
|
|
<successCodes>
|
|
<successCode>0</successCode>
|
|
<successCode>1</successCode>
|
|
</successCodes>
|
|
</configuration>
|
|
</execution>
|
|
<!-- 在install阶段构建Docker镜像 -->
|
|
<execution>
|
|
<id>docker-build</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>docker</executable>
|
|
<arguments>
|
|
<argument>-H</argument>
|
|
<argument>tcp://172.22.222.6:2375</argument>
|
|
<argument>build</argument>
|
|
<argument>-t</argument>
|
|
<argument>172.22.222.100:28082/task-reminder:1.0.0</argument>
|
|
<argument>.</argument>
|
|
</arguments>
|
|
<successCodes>
|
|
<successCode>0</successCode>
|
|
<successCode>1</successCode>
|
|
</successCodes>
|
|
</configuration>
|
|
</execution>
|
|
<!-- 在install阶段推送Docker镜像 -->
|
|
<execution>
|
|
<id>docker-push</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>docker</executable>
|
|
<arguments>
|
|
<argument>-H</argument>
|
|
<argument>tcp://172.22.222.6:2375</argument>
|
|
<argument>push</argument>
|
|
<argument>172.22.222.100:28082/task-reminder:1.0.0</argument>
|
|
</arguments>
|
|
<successCodes>
|
|
<successCode>0</successCode>
|
|
<successCode>1</successCode>
|
|
</successCodes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>docker-run</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>docker</executable>
|
|
<arguments>
|
|
<argument>-H</argument>
|
|
<argument>tcp://172.22.222.6:2375</argument>
|
|
<argument>compose</argument>
|
|
<argument>up</argument>
|
|
<argument>-d</argument>
|
|
</arguments>
|
|
<successCodes>
|
|
<successCode>0</successCode>
|
|
<successCode>1</successCode>
|
|
</successCodes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|