Skip to content

Commit 1579418

Browse files
committed
更新为central-publishing-maven-plugin进行发布
1 parent 6fdca42 commit 1579418

9 files changed

Lines changed: 39 additions & 23 deletions

File tree

opensabre-base-dependencies/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-base-dependencies</artifactId>
1414
<packaging>pom</packaging>
1515

16+
<name>opensabre-base-dependencies</name>
17+
<description>Base Dependencies</description>
18+
1619
<properties>
1720
<dockerhub.repository>opensabre</dockerhub.repository>
1821
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

opensabre-starter-boot/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-starter-boot</artifactId>
1414
<packaging>jar</packaging>
1515

16+
<name>opensabre-starter-boot</name>
17+
<description>Opensabre Boot Starter</description>
18+
1619
<properties>
1720
<logback-core.version>1.5.13</logback-core.version>
1821
<springdoc-openapi-starter.version>2.7.0</springdoc-openapi-starter.version>

opensabre-starter-cache/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-starter-cache</artifactId>
1414
<packaging>jar</packaging>
1515

16+
<name>opensabre-starter-cache</name>
17+
<description>Opensabre Boot Cache</description>
18+
1619
<dependencyManagement>
1720
<dependencies>
1821
<dependency>

opensabre-starter-config/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-starter-config</artifactId>
1414
<packaging>jar</packaging>
1515

16+
<name>opensabre-starter-config</name>
17+
<description>Opensabre Boot Config</description>
18+
1619
<dependencyManagement>
1720
<dependencies>
1821
<dependency>

opensabre-starter-eda/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-starter-eda</artifactId>
1414
<packaging>jar</packaging>
1515

16+
<name>opensabre-starter-eda</name>
17+
<description>Opensabre Boot Eda</description>
18+
1619
<dependencyManagement>
1720
<dependencies>
1821
<dependency>

opensabre-starter-persistence/pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010
<version>${revision}</version>
1111
</parent>
1212

13+
<artifactId>opensabre-starter-persistence</artifactId>
14+
<packaging>jar</packaging>
15+
16+
<name>opensabre-starter-persistence</name>
17+
<description>Opensabre Boot Persistence</description>
18+
1319
<properties>
1420
<org.mapstruct.version>1.5.5.Final</org.mapstruct.version>
1521
</properties>
1622

17-
<artifactId>opensabre-starter-persistence</artifactId>
18-
<packaging>jar</packaging>
19-
2023
<dependencyManagement>
2124
<dependencies>
2225
<dependency>

opensabre-starter-register/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-starter-register</artifactId>
1414
<packaging>jar</packaging>
1515

16+
<name>opensabre-starter-register</name>
17+
<description>Opensabre Boot Register</description>
18+
1619
<dependencyManagement>
1720
<dependencies>
1821
<dependency>

opensabre-starter-rpc/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<artifactId>opensabre-starter-rpc</artifactId>
1414
<packaging>jar</packaging>
1515

16+
<name>opensabre-starter-rpc</name>
17+
<description>Opensabre Boot Rpc</description>
18+
1619
<dependencyManagement>
1720
<dependencies>
1821
<dependency>

pom.xml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,23 @@
6060
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
6161
<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>
6262
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
63-
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
6463
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
64+
<central-publishing-maven-plugin.version>0.9.0</central-publishing-maven-plugin.version>
6565

6666
<revision>0.1.1</revision>
6767
</properties>
6868

69-
<!--发布仓库的定义-->
69+
<!-- 发布配置 -->
7070
<distributionManagement>
7171
<snapshotRepository>
7272
<id>ossrh</id>
73-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
73+
<name>OSS Sonatype Snapshots</name>
74+
<url>https://central.sonatype.com/content/repositories/snapshots</url>
7475
</snapshotRepository>
7576
<repository>
7677
<id>ossrh</id>
77-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
78+
<name>OSS Sonatype Releases</name>
79+
<url>https://central.sonatype.com/content/repositories/releases</url>
7880
</repository>
7981
</distributionManagement>
8082

@@ -87,14 +89,6 @@
8789
<enabled>false</enabled>
8890
</snapshots>
8991
</repository>
90-
<repository>
91-
<id>sonatype-nexus-snapshots</id>
92-
<name>Sonatype Nexus Snapshots</name>
93-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
94-
<snapshots>
95-
<enabled>true</enabled>
96-
</snapshots>
97-
</repository>
9892
</repositories>
9993

10094
<pluginRepositories>
@@ -187,14 +181,12 @@
187181
</plugin>
188182
<!--上传jar包插件-->
189183
<plugin>
190-
<groupId>org.sonatype.plugins</groupId>
191-
<artifactId>nexus-staging-maven-plugin</artifactId>
192-
<version>${nexus-staging-maven-plugin.version}</version>
184+
<groupId>org.sonatype.central</groupId>
185+
<artifactId>central-publishing-maven-plugin</artifactId>
186+
<version>${central-publishing-maven-plugin.version}</version>
193187
<extensions>true</extensions>
194188
<configuration>
195-
<serverId>ossrh</serverId>
196-
<nexusUrl>https://ossrh-staging-api.central.sonatype.com</nexusUrl>
197-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
189+
<publishingServerId>ossrh</publishingServerId>
198190
</configuration>
199191
</plugin>
200192
<plugin>
@@ -275,8 +267,8 @@
275267
</plugin>
276268
<!-- 发布包到nexus插件-->
277269
<plugin>
278-
<groupId>org.sonatype.plugins</groupId>
279-
<artifactId>nexus-staging-maven-plugin</artifactId>
270+
<groupId>org.sonatype.central</groupId>
271+
<artifactId>central-publishing-maven-plugin</artifactId>
280272
</plugin>
281273
</plugins>
282274
</build>

0 commit comments

Comments
 (0)