From 4fc76fcb8260b20bf8afad5decd5eea84f5c7528 Mon Sep 17 00:00:00 2001 From: hahmann Date: Tue, 28 Apr 2026 10:25:41 +0200 Subject: [PATCH 1/2] Attach shaded jar as classifier instead of replacing main artifact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The maven-shade-plugin currently replaces the main artifact with the fat jar and publishes a dependency-reduced POM. Library consumers therefore get a jar that bundles Jackson/AWS SDK/okhttp/etc., paired with a POM that declares no dependencies — which causes duplicate-class failures under maven-enforcer-plugin's RequireUpperBoundDeps/banDuplicateClasses when the consumer also depends on those libraries directly. Switch to shadedArtifactAttached=true with classifier "shaded" and disable the reduced POM. This publishes: - zarr-java-.jar thin jar, only zarr-java classes; full POM with proper transitive dependencies for library consumers. - zarr-java--shaded.jar fat jar with Main-Class manifest, for CLI users (java -jar zarr-java-...-shaded.jar). --- pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pom.xml b/pom.xml index c882619..12a30df 100644 --- a/pom.xml +++ b/pom.xml @@ -263,6 +263,9 @@ shade + true + shaded + false dev.zarr.zarrjava.cli.Main From 87e3c937feda7ce9b57a5be5bf7be97d0e1d9cd4 Mon Sep 17 00:00:00 2001 From: hahmann Date: Wed, 29 Apr 2026 23:37:52 +0200 Subject: [PATCH 2/2] Change project version to 0.1.3-SNAPSHOT in pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 12a30df..c634ed5 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.zarr zarr-java - 0.1.2 + 0.1.3-SNAPSHOT zarr-java