Skip to content
Open
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
20 changes: 7 additions & 13 deletions modules/dataverse-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,14 @@
<id>central</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
Copy link
Member Author

Choose a reason for hiding this comment

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

At https://github.com/IQSS/dataverse/actions/runs/18604319308/job/53050122472?pr=11905 I see "deploy snapshot" is failing with this:

Error: Failed to execute goal org.sonatype.central:central-publishing-maven-plugin:0.9.0:publish (injected-central-publishing) on project dataverse-spi: Failed to deploy artifacts: Could not transfer artifact io.gdcc:dataverse-spi:jar:2.1.0-PR11905-20251017.204025-1 from/to central (https://central.sonatype.com/repository/maven-snapshots/): status code: 401, reason phrase: Unauthorized (401) -> [Help 1]

Hmm. 🤔

<repository>
<!--TODO: change this from ossrh to central?-->
<id>ossrh</id>
<!--TODO: change this url?-->
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<properties>
<!-- This property may be used to append a string to the version number from command line -->
<project.version.suffix></project.version.suffix>
<javadoc.lint>none</javadoc.lint>
<skipDeploy>false</skipDeploy>
<skipRelease>false</skipRelease>
</properties>

<dependencies>
Expand Down Expand Up @@ -108,15 +103,14 @@

<!-- RELEASING -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<!--TODO: change this from ossrh to central?-->
<serverId>ossrh</serverId>
<!--TODO: change this URL?-->
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<deploymentName>${project.name}</deploymentName>
<skipPublishing>${skipRelease}</skipPublishing>
</configuration>
</plugin>
<plugin>
Expand Down
Loading