From 58eb4251b83e65b2808a26275c2c6e7a8313fdf2 Mon Sep 17 00:00:00 2001 From: TestingBot Date: Wed, 15 Jul 2026 19:24:18 +0200 Subject: [PATCH] Keep runtime deps in published POM; auto-publish to Maven Central Two fixes to how the artifact is published: 1. createDependencyReducedPom=false: with the uber jar attached as the 'shaded' classifier, maven-shade-plugin's default dependency-reduced POM stripped every dependency that was shaded into the uber jar (Jetty, Apache HTTP, commons-cli, Jackson, ...). That left the published thin main jar declaring only test-scoped deps, so consumers got a jar with no resolvable runtime dependencies. Keep the full dependency list in the published POM. 2. autoPublish=true + waitUntil=published: the central-publishing-maven-plugin defaulted to a manual release, so 'mvn deploy' only uploaded a *pending* deployment that then had to be released by hand in the Central Portal (which is why 4.8 built green but never appeared on Maven Central). Now a deploy from either release.yml (on tag) or the manual Publish workflow actually publishes. --- pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pom.xml b/pom.xml index 94edf6a..998cdcc 100644 --- a/pom.xml +++ b/pom.xml @@ -77,6 +77,10 @@ true central + + true + published @@ -152,6 +156,11 @@ The runnable uber jar is attached under the "shaded" classifier for CLI/Docker use. --> true shaded + + false true