Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -580,17 +580,20 @@
<id>release</id>
Copy link
Member

@heuermh heuermh Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I note this plugin is only included for the release profile. What does the maven command for the release look like?

E.g. from the readme

For developers
Release biojava to maven central:

mvn -Prelease release:prepare
mvn -Prelease release:perform

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct: the instructions in the readme still apply in the same way. No changes there.

<build>
<plugins>
<!-- for deployment on OSS Sonatype -->
<!-- handles propagating the build to the staging repository -->
<!-- handles uploading the build to the maven central repository -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<!-- Note your maven settings.xml needs a server section with <id> that matches this one and valid credentials for maven central -->
<publishingServerId>central</publishingServerId>
<!-- If this is set to false, the artifact is only staged and then needs pushing manually via the web interface at https://central.sonatype.com/publishing/deployments -->
<!-- With true it publishes automatically -->
<autoPublish>true</autoPublish>
<!-- NOTE this is to wait for the new release to be validated and publicly available. Not essential but nice that when build is done, we know the artifacts are available publicly -->
<waitUntil>published</waitUntil>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means the maven command waits until the publish is complete?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

</configuration>
</plugin>

Expand Down