Skip to content

Commit 6fbecce

Browse files
pom: Set a deployment name when publishing to Maven Central
This will make it easier to identify each release on the Central Portal "Deployments" page. Also fix indentation of this section.
1 parent 894a474 commit 6fbecce

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pom.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -547,15 +547,17 @@
547547
</gpgArguments>
548548
</configuration>
549549
</plugin>
550-
<plugin>
551-
<groupId>org.sonatype.central</groupId>
552-
<artifactId>central-publishing-maven-plugin</artifactId>
553-
<extensions>true</extensions>
554-
<configuration>
555-
<publishingServerId>central</publishingServerId>
556-
<autoPublish>true</autoPublish>
557-
</configuration>
558-
</plugin>
550+
<plugin>
551+
<groupId>org.sonatype.central</groupId>
552+
<artifactId>central-publishing-maven-plugin</artifactId>
553+
<extensions>true</extensions>
554+
<configuration>
555+
<publishingServerId>central</publishingServerId>
556+
<autoPublish>true</autoPublish>
557+
<!-- Name displayed on the Central Portal "Deployments" page -->
558+
<deploymentName>${project.artifactId} ${project.version}</deploymentName>
559+
</configuration>
560+
</plugin>
559561
</plugins>
560562
</build>
561563
</profile>

0 commit comments

Comments
 (0)