Repository navigation
A release publishes the classes as a jar, with no WAR - #599
Merged
Merged
Conversation
Maven Central limits each organization's monthly release size, and the 44 MB WAR was most of every release: 6.7.0 was refused as over the limit. The release profile packages a jar and skips the war goal, which would otherwise replace the main artifact with the WAR. The -classes jar goes too, since the main artifact is now the classes. The Docker image builds its own webapp from source and is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 6.7.0 release was refused by Maven Central: "your organization has reached its monthly release size limit" (limits enforced since 2026-10-01, see https://central.sonatype.org/publish/maven-central-publishing-limits/). Each release was about 47 MB, 44 MB of it the WAR, against a free-tier limit of about 78 MB a month. Without the WAR a release is about 3.6 MB.
Nothing downloads the WAR from Central to run LinkedDataHub: the Docker image builds the webapp from source (
-Pstandalone).What
releaseprofile:packaging.typejar, and thepackage-warexecution disabled. Left on, thewargoal replaces the project's main artifact file with the WAR whatever the packaging, so Central would still have received it.attachClassesremoved: the main artifact is now the classes jar.The default
standalonebuild is unchanged apart from the-classesjar no longer being attached.Consumers
A project that depends on
com.atomgraph:linkeddatahubwith<classifier>classes</classifier>drops the classifier when it moves to 6.7.0 (LinkedDataHub-Cloud, OpsGraph, AutoGraph). Homepage overlays the WAR and moves to the image; a separate PR there.The jar no longer carries copies of 45 Web-Client classes and resources that the 6.6.0
-classesjar did; they come from theclient:6.1.3:classesdependency, which the pom passes on.Tested
mvn -Prelease clean verify -DskipTests: main jar (770 KB), sources, javadoc and pom, each signed; no WAR intarget/. Not tested: the Central upload itself, which happens only inrelease.sh.🤖 Generated with Claude Code