<?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>com.aizuda</groupId> <artifactId>easy-retry-datasource</artifactId> <version>${revision}</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>easy-retry-postgres-datasource</artifactId> <name>easy-retry-postgres-datasource</name> <description>easy-retry-postgres-datasource</description> <packaging>jar</packaging> <properties> <java.version>17</java.version> <postgresql.version>42.2.24</postgresql.version> </properties> <dependencies> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>com.aizuda</groupId> <artifactId>easy-retry-datasource-template</artifactId> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${postgresql.version}</version> <!-- 使用最新版本 --> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>none</mainClass> <!-- 取消查找本项目下的Main方法:为了解决Unable to find main class的问题 --> <classifier>execute</classifier> <!-- 为了解决依赖模块找不到此模块中的类或属性 --> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>