nexus-repository-composer
nexus-repository-composer copied to clipboard
HA support
Hi,
Currently, the plug-in doesn't works with the new high availability mode of Nexus.
The plug-in can be installed without any error, but when you're trying to configure a new repository, all the composer recipes will not appear in the list of available recipes and the following error will appear in nexus.log
:
2024-10-01 14:56:14,388+0200 ERROR [qtp286980758-317] nexus admin org.sonatype.nexus.repository.db.datastore.DatabaseCheckImpl - Missing database version specified for class org.sonatype.nexus.repository.composer.internal.recipe.ComposerHostedRecipe
2024-10-01 14:56:14,389+0200 ERROR [qtp286980758-317] nexus admin org.sonatype.nexus.repository.db.datastore.DatabaseCheckImpl - Missing database version specified for class org.sonatype.nexus.repository.composer.internal.recipe.ComposerProxyRecipe
2024-10-01 14:56:14,390+0200 ERROR [qtp286980758-317] nexus admin org.sonatype.nexus.repository.db.datastore.DatabaseCheckImpl - Missing database version specified for class org.sonatype.nexus.repository.composer.internal.recipe.ComposerGroupRecipe
This PR adds support of the ha mode of Nexus by:
- Adding the AvailabilityVersion annotation for each composer recipes class
- Overriding the isFeatureEnabled method, because composer is not listed in the immutable list of recipes compatible with the HA mode
Let me know if you need any further information.
Regards, Julien Huon