#840 works around the Maven 3.10 credential scoping change by passing -Dmaven.repository.credentialScope=id to the snapshot deploy. That turns the new scoping off instead of configuring it.
setup-java added a mvn-server-repository-origins input in actions/setup-java#1282 (merged 2026-10-07), but it isn't in a release yet (latest is v6.0.1).
Once it's released:
References: Maven 3.10.0 release notes
#840 works around the Maven 3.10 credential scoping change by passing
-Dmaven.repository.credentialScope=idto the snapshot deploy. That turns the new scoping off instead of configuring it.setup-javaadded amvn-server-repository-originsinput in actions/setup-java#1282 (merged 2026-10-07), but it isn't in a release yet (latest is v6.0.1).Once it's released:
actions/setup-javato the release that includes itmvn-server-repository-origins: central:https://central.sonatype.comto the publish job insnapshot.yml-Dmaven.repository.credentialScope=idfrom the snapshot deployrelease.yml/github-build.sh) is affected and add the origin there tooReferences: Maven 3.10.0 release notes