Skip to content

Commit 6993d23

Browse files
committed
docs:update maven publish.
1 parent f0a629a commit 6993d23

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

pom.xml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
<maven.source.plugin.version>3.2.0</maven.source.plugin.version>
6464
<maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
6565
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
66-
<maven.deploy.plugin.version>3.0.0-M1</maven.deploy.plugin.version>
6766
<maven.flatten.plugin.version>1.2.5</maven.flatten.plugin.version>
6867
<maven.clean.plugin.version>3.1.0</maven.clean.plugin.version>
68+
<central.publishing.maven.plugin.version>0.8.0</central.publishing.maven.plugin.version>
6969

7070
<timestamp>${maven.build.timestamp}</timestamp>
7171
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -239,11 +239,28 @@
239239
</executions>
240240
</plugin>
241241
<plugin>
242-
<groupId>org.apache.maven.plugins</groupId>
243-
<artifactId>maven-deploy-plugin</artifactId>
244-
<version>${maven.deploy.plugin.version}</version>
242+
<groupId>org.sonatype.central</groupId>
243+
<artifactId>central-publishing-maven-plugin</artifactId>
244+
<version>${central.publishing.maven.plugin.version}</version>
245+
<extensions>true</extensions>
245246
<configuration>
246-
<skip>${skip.maven.deploy}</skip>
247+
<publishingServerId>central-portal</publishingServerId>
248+
<excludeArtifacts>
249+
<excludeArtifact>dubbo-examples</excludeArtifact>
250+
<excludeArtifact>dubbo-api-example</excludeArtifact>
251+
<excludeArtifact>dubbo-discovery-example</excludeArtifact>
252+
<excludeArtifact>dubbo-quick-consumer</excludeArtifact>
253+
<excludeArtifact>dubbo-quick-provider</excludeArtifact>
254+
<excludeArtifact>dubbo-governance-example</excludeArtifact>
255+
<excludeArtifact>dubbo-governance-consumer</excludeArtifact>
256+
<excludeArtifact>dubbo-governance-provider</excludeArtifact>
257+
<excludeArtifact>dubbo-press-example</excludeArtifact>
258+
<excludeArtifact>dubbo-press-provider</excludeArtifact>
259+
<excludeArtifact>dubbo-router-example</excludeArtifact>
260+
<excludeArtifact>dubbo-backend-example</excludeArtifact>
261+
<excludeArtifact>dubbo-front-example</excludeArtifact>
262+
<excludeArtifact>dubbo-middle-example</excludeArtifact>
263+
</excludeArtifacts>
247264
</configuration>
248265
</plugin>
249266
</plugins>
@@ -282,17 +299,6 @@
282299
</profile>
283300
</profiles>
284301

285-
<distributionManagement>
286-
<snapshotRepository>
287-
<id>central-portal</id>
288-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
289-
</snapshotRepository>
290-
<repository>
291-
<id>central-portal</id>
292-
<url>https://ossrh-staging-api.central.sonatype.com/service/local/</url>
293-
</repository>
294-
</distributionManagement>
295-
296302
<repositories>
297303
<repository>
298304
<name>Central Portal Snapshots</name>

0 commit comments

Comments
 (0)