y9demo-maven-central/pom.xml

147 lines
4.2 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>net.risesoft</groupId>
<artifactId>y9demo-maven-central</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>y9demo-maven-central</name>
<description>Demo project for Spring Boot</description>
<url>https://svn.youshengyun.com:3000/dingzhaojun/y9demo-maven-central.git</url>
<licenses>
<license>
<name>GNU General Public License (GPL) version 3.0</name>
<url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>dingzhaojun</name>
<email>dingzhaojun@risesoft.net</email>
<organization>risesoft</organization>
<organizationUrl>https://www.risesoft.net</organizationUrl>
</developer>
</developers>
<scm>
<url>https://svn.youshengyun.com:3000/dingzhaojun/y9demo-maven-central.git</url>
<connection>https://svn.youshengyun.com:3000/dingzhaojun/y9demo-maven-central.git</connection>
<developerConnection>https://svn.youshengyun.com:3000/dingzhaojun/y9demo-maven-central.git</developerConnection>
<tag>y9demo</tag>
</scm>
<!--<distributionManagement>
<snapshotRepository>
<id>mvn-central</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>mvn-central</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>-->
<!--<distributionManagement>
<repository>
<id>gitea</id>
<url>https://svn.youshengyun.com:3000/api/packages/risesoft/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>https://svn.youshengyun.com:3000/api/packages/risesoft/maven</url>
</snapshotRepository>
</distributionManagement>-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.1</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<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>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>mvn-central</publishingServerId>
<centralBaseUrl>https://central.sonatype.com</centralBaseUrl>
<deploymentName>${project.artifactId}-${project.version}</deploymentName>
<skipPublishing>false</skipPublishing>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil><!--validated uploaded-->
</configuration>
</plugin>
</plugins>
</build>
</project>