Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-34716

Nexus startup fails with nexus.maven.native.rebuild property set

    Details

    • Notability:
      3

      Description

      ISSUE:
      Using below property for older maven metadata rebuild behavior (due to NEXUS-34715), nexus 3.40.1 fails to start.

      nexus.maven.native.rebuild=false
      

      ERROR:

      2022-08-17 10:47:45,243+1000 ERROR [FelixStartLevel]  *SYSTEM org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl - Failed transition: NEW -> STARTED
      com.google.inject.ProvisionException: Unable to provision, see the following errors:
      
      1) [Guice/NullInjectedIntoNonNullable]: null returned by binding at LocatorWiring
       but the 1st parameter of MavenMetadataRebuildFacetImpl.<init>(MavenMetadataRebuildFacetImpl.java:54) is not @Nullable
        at LocatorWiring
        at MavenMetadataRebuildFacetImpl.<init>(MavenMetadataRebuildFacetImpl.java:54)
            \_ for 1st parameter
        while locating MavenMetadataRebuildFacetImpl
        while locating Object annotated with *
        at LocatorWiring
        while locating MavenMetadataRebuildFacet
      
      Learn more:
        https://github.com/google/guice/wiki/NULL_INJECTED_INTO_NON_NULLABLE
      
      1 error
      
      ======================
      Full classname legend:
      ======================
      LocatorWiring:                 "org.eclipse.sisu.wire.LocatorWiring"
      MavenMetadataRebuildFacet:     "org.sonatype.nexus.repository.maven.MavenMetadataRebuildFacet"
      MavenMetadataRebuildFacetImpl: "org.sonatype.nexus.content.maven.internal.recipe.MavenMetadataRebuildFacetImpl"
      ========================
      End of classname legend:
      ========================
      

      ENVIRONMENT:
      Nexus 3.40.1 with postgresql database.

      WORKAROUND:
      Use nexus.maven.datastore.legacy.rebuild=true attribute instead.

      EXPECTED BEHAVIOR:
      Nexus starts successful with nexus.maven.native.rebuild attribute.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sappusamy Srinivasan Appusamy
              Last Updated By:
              Rich Seddon Rich Seddon
              Team:
              NXRM - Mad Max
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title