<?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>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>4.0.1</version> <relativePath/> <!-- lookup parent from repository --> </parent> <!-- 2. 项目元数据 --> <groupId>com.diyipingce</groupId> <artifactId>BasicLibrary.SpringBoot</artifactId> <version>1.0.1</version> <name>BasicLibrary.SpringBoot</name> <description>This is a basic library for SpringBoot programming.</description> <url>https://github.com/notinmood/BasicLibrary.SpringBoot</url> <licenses> <license> <name>Apache-2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <developers> <developer> <name>山东解大劦</name> <email>[email protected]</email> </developer> </developers> <scm> <connection>scm:git:git://github.com/notinmood/BasicLibrary.SpringBoot.git</connection> <developerConnection>scm:git:ssh://github.com:notinmood/BasicLibrary.SpringBoot.git</developerConnection> <url>https://github.com/notinmood/BasicLibrary.SpringBoot</url> </scm> <!-- 3. 发布仓库地址 --> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <properties> <java.version>21</java.version> <BasicLibrary.JAVA.version>1.0.14</BasicLibrary.JAVA.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webmvc</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webmvc-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.diyipingce</groupId> <artifactId>BasicLibrary.JAVA</artifactId> <version>${BasicLibrary.JAVA.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <!-- Sonatype Central 发布插件 --> <plugin> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>0.4.0</version> <extensions>true</extensions> <configuration> <publishingServerId>ossrh</publishingServerId> <tokenAuth>true</tokenAuth> </configuration> </plugin> <!-- 源码插件 - 官方要求 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.0</version> <!-- 建议使用最新版本 --> <executions> <execution> <id>attach-sources</id> <!-- 建议使用 jar-no-fork 目标 --> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- Javadoc 插件 - 官方要求 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.6.0</version> <!-- 建议使用最新版本 --> <configuration> <!-- 设置编码防止中文乱码 --> <encoding>UTF-8</encoding> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- GPG 签名插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> <arg>--batch</arg> </gpgArguments> </configuration> </plugin> </plugins> </build> </project>
<dependency> <groupId>com.diyipingce</groupId> <artifactId>BasicLibrary.SpringBoot</artifactId> <version>1.0.1</version> </dependency>
com.diyipingce:BasicLibrary.SpringBoot:1.0.1