Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

docker: remove official plugin to prevent conflicts on 3.77 - #175

Open
stklcode wants to merge 1 commit into
sonatype-nexus-community:masterfrom
stklcode:docker/nexus377
Open

docker: remove official plugin to prevent conflicts on 3.77#175
stklcode wants to merge 1 commit into
sonatype-nexus-community:masterfrom
stklcode:docker/nexus377

Conversation

@stklcode

@stklcode stklcode commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

There is Composer support in the Community Edition since 3.77.0 and having both plugins enabled there are conflicts during startup, because both share the same content type "composer".

Add a build step to remove the official Composer plugin from the feature set and only use the community plugin.

Also synchronize the build JDK with our CI pipeline and use Java 17.


Without this workaround, running a 3.77 container with our plugin enabled crashes

ACTIVATING com.sonatype.nexus.plugins.nexus-repository-composer [3.77.0.08]
ACTIVATED com.sonatype.nexus.plugins.nexus-repository-composer [3.77.0.08]
...
ACTIVATING org.sonatype.nexus.plugins.nexus-repository-composer [0.1.9]
ACTIVATED org.sonatype.nexus.plugins.nexus-repository-composer [0.1.9]
...
Creating schema for ComposerAssetBlobDAO           # <-- from official plugin
Creating schema for ComposerContentRepositoryDAO
Creating schema for ComposerComponentDAO
Creating schema for ComposerAssetDAO
Creating schema for ComposerComponentDAO
Creating schema for ComposerContentRepositoryDAO
Creating schema for ComposerBrowseNodeDAO
Creating schema for DownloadCountDAO
Creating schema for Log4JVisualizerConfigurationDAO
Creating schema for RepositoryMetricsDAO
Creating schema for ComposerBrowseNodeDAO          # <-- from community plugin
Creating schema for ComposerAssetBlobDAO
Creating schema for ComposerAssetDAO

...

Failed to get state from com.google.inject.internal.InjectorImpl$1 (ignored)
java.lang.IllegalStateException: nx-repository-view-composer-*-delete already exists

There is Composer support in the Community Edition since 3.77.0 and
having both plugins enabled there are conflicts during startup, because
both share the same content type "composer".

Add a build step to remove the official Composer plugin from the feature
set and only use the community plugin.

Also synchronize the build JDK with our CI pipeline and use Java 17.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

😍 cla signed The CLA is signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants