-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersreleasedIssue has been releasedIssue has been released
Milestone
Description
Task List
- Steps to reproduce provided
- Stacktrace (if present) provided
- Example that reproduces the problem (link to git repository is ideal)
- Full description of the issue provided (see below)
Steps to Reproduce
I have a directory containing a set of artifacts to be deployed (the directory is laid out in the standard Maven repository layout). The directory includes artifacts that meet the CR requirements, along with PGP signatures for every file. I'm fairly sure, given the actual error below, that the artifacts themselves don't matter.
I have the following jreleaser.toml
:
[deploy.maven.mavenCentral.sonatype]
active = "ALWAYS"
sign = false
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepositories = ["build/maven"]
I run jreleaser:
$ env \
JRELEASER_MAVENCENTRAL_USERNAME="${MAVEN_CENTRAL_USERNAME}" \
JRELEASER_MAVENCENTRAL_PASSWORD="${MAVEN_CENTRAL_PASSWORD}" \
JRELEASER_PROJECT_JAVA_GROUP_ID="${JRELEASER_PROJECT_JAVA_GROUP_ID}" \
JRELEASER_PROJECT_VERSION="${JRELEASER_PROJECT_VERSION}" \
./jreleaser deploy --config-file=jreleaser.toml
Expected Behaviour
I'd expect to see jreleaser
create a bundle and deploy it to Maven Central.
Actual Behaviour
[INFO] JReleaser 1.19.0
[INFO] Configuring with jreleaser.toml
[INFO] - basedir set to /home/runner/work/android-maven-central-testing/android-maven-central-testing
[INFO] - outputdir set to /home/runner/work/android-maven-central-testing/android-maven-central-testing/out/jreleaser
[INFO] Reading configuration
[INFO] git-root-search set to false
[INFO] Loading variables from /home/runner/.jreleaser/config.properties
[WARN] Variables source /home/runner/.jreleaser/config.properties does not exist
[INFO] Validating configuration
[INFO] Strict mode set to false
[INFO] Project version set to 1.0.2
[INFO] Release is not snapshot
[INFO] Timestamp is 2025-07-02T11:54:01.450798Z
[INFO] HEAD is at a384790
[INFO] Platform is linux-x86_64
[INFO] yolo set to false
[INFO] dry-run set to false
[INFO] Deploying Maven artifacts
[INFO] [maven] Deploying all staged artifacts
[INFO] [mavenCentral] Deploying to sonatype
[INFO] Writing output properties to out/jreleaser/output.properties
Error: JReleaser failed after 0.001 s
java.lang.IllegalStateException: javax.xml.xpath.XPathExpressionException: java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xml.internal.res.XMLErrorResources
at org.jreleaser.sdk.commons.AbstractMavenDeployer$DeployableCollector.parsePom(AbstractMavenDeployer.java:711)
at org.jreleaser.sdk.commons.AbstractMavenDeployer$DeployableCollector.addDeployable(AbstractMavenDeployer.java:674)
at org.jreleaser.sdk.commons.AbstractMavenDeployer$DeployableCollector.match(AbstractMavenDeployer.java:667)
at org.jreleaser.sdk.commons.AbstractMavenDeployer$DeployableCollector.visitFile(AbstractMavenDeployer.java:717)
at org.jreleaser.sdk.commons.AbstractMavenDeployer$DeployableCollector.visitFile(AbstractMavenDeployer.java:648)
at java.base@23.0.1/java.nio.file.Files.walkFileTree(Files.java:2810)
at java.base@23.0.1/java.nio.file.Files.walkFileTree(Files.java:2881)
at org.jreleaser.sdk.commons.AbstractMavenDeployer.collectDeployables(AbstractMavenDeployer.java:167)
at org.jreleaser.sdk.commons.AbstractMavenDeployer.collectDeployableArtifacts(AbstractMavenDeployer.java:118)
at org.jreleaser.sdk.commons.AbstractMavenDeployer.collectDeployables(AbstractMavenDeployer.java:129)
at org.jreleaser.sdk.commons.AbstractMavenDeployer.collectDeployables(AbstractMavenDeployer.java:125)
at org.jreleaser.sdk.mavencentral.MavenCentralMavenDeployer.deploy(MavenCentralMavenDeployer.java:84)
at org.jreleaser.engine.deploy.maven.ProjectMavenDeployer.deploy(ProjectMavenDeployer.java:55)
at org.jreleaser.engine.deploy.maven.MavenDeployers.deploy(MavenDeployers.java:167)
at org.jreleaser.engine.deploy.maven.MavenDeployers.doDeploy(MavenDeployers.java:150)
at org.jreleaser.engine.deploy.maven.MavenDeployers.deploy(MavenDeployers.java:59)
at org.jreleaser.workflow.DeployWorkflowItem.doInvoke(DeployWorkflowItem.java:35)
at org.jreleaser.workflow.AbstractWorkflowItem.lambda$invoke$0(AbstractWorkflowItem.java:43)
at org.jreleaser.engine.hooks.HookExecutor.execute(HookExecutor.java:72)
at org.jreleaser.workflow.AbstractWorkflowItem.invoke(AbstractWorkflowItem.java:43)
at org.jreleaser.workflow.WorkflowImpl.doExecute(WorkflowImpl.java:130)
at org.jreleaser.workflow.WorkflowImpl.execute(WorkflowImpl.java:54)
at org.jreleaser.cli.Deploy.doExecute(Deploy.java:105)
at org.jreleaser.cli.AbstractModelCommand.execute(AbstractModelCommand.java:93)
at org.jreleaser.cli.AbstractCommand.call(AbstractCommand.java:52)
at org.jreleaser.cli.AbstractCommand.call(AbstractCommand.java:37)
at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at picocli.CommandLine.execute(CommandLine.java:2174)
at org.jreleaser.cli.Main.execute(Main.java:98)
at org.jreleaser.cli.Main.run(Main.java:81)
at org.jreleaser.cli.Main.main(Main.java:70)
at java.base@23.0.1/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: javax.xml.xpath.XPathExpressionException: java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xml.internal.res.XMLErrorResources
at java.xml@23.0.1/com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:106)
at org.jreleaser.sdk.commons.AbstractMavenDeployer$DeployableCollector.parsePom(AbstractMavenDeployer.java:700)
... 37 more
Caused by: java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xml.internal.res.XMLErrorResources
at java.xml@23.0.1/jdk.xml.internal.SecuritySupport.lambda$getResourceBundle$8(SecuritySupport.java:362)
at java.base@23.0.1/java.security.AccessController.executePrivileged(AccessController.java:132)
at java.base@23.0.1/java.security.AccessController.doPrivileged(AccessController.java:319)
at java.xml@23.0.1/jdk.xml.internal.SecuritySupport.getResourceBundle(SecuritySupport.java:355)
at java.xml@23.0.1/jdk.xml.internal.SecuritySupport.getResourceBundle(SecuritySupport.java:344)
at java.xml@23.0.1/com.sun.org.apache.xml.internal.res.XMLMessages.createXMLMessage(XMLMessages.java:84)
at java.xml@23.0.1/com.sun.org.apache.xml.internal.utils.ObjectPool.getInstance(ObjectPool.java:145)
at java.xml@23.0.1/com.sun.org.apache.xml.internal.utils.StringBufferPool.get(StringBufferPool.java:45)
at java.xml@23.0.1/com.sun.org.apache.xml.internal.dtm.ref.dom2dtm.DOM2DTM.getStringValue(DOM2DTM.java:822)
at java.xml@23.0.1/com.sun.org.apache.xpath.internal.objects.XNodeSet.getStringFromNode(XNodeSet.java:219)
at java.xml@23.0.1/com.sun.org.apache.xpath.internal.objects.XNodeSet.str(XNodeSet.java:282)
at java.xml@23.0.1/com.sun.org.apache.xpath.internal.jaxp.XPathImplUtil.getResultAsType(XPathImplUtil.java:151)
at java.xml@23.0.1/com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:84)
at java.xml@23.0.1/com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:92)
... 38 more
Environment Information
- Operating System: The GitHub ubuntu-large CI runner.
JReleaser Version::
------------------------------------------------------------
jreleaser 1.19.0
------------------------------------------------------------
Build time: 2025-06-30 18:28:25Z
Revision: ecaef0d76d84f702c96e129073966bafa145456a
JVM: 23.0.1 (GraalVM Community 23.0.1+11)
------------------------------------------------------------
See above for the stack trace reported from the CI runner.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersreleasedIssue has been releasedIssue has been released