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

nexus-staging:deploy-staged fails with NullPointerException: BUG: finalizeDeploy invoked before deployPerModule?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.10
    • Component/s: Build Tooling, Staging
    • Labels:
      None
    • Environment:
      nexus-staging-maven-plugin 1.6 or 1.6.1 or 1.6.2
    • Sprint:
      Sprint 25

      Description

      The following scenario works with nexus-staging-maven-plugin 1.5.1, but not 1.6.1.

      mvn clean deploy -DskipRemoteStaging=true
      mvn nexus-staging:deploy-staged
      

      1.6.1 fails using Maven 2.2.1/3.0.4/3.2.2 with:

      [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged (default-cli) on project example-staging-m2: Execution default-cli of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged failed: BUG: finalizeDeploy invoked before deployPerModule? -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged (default-cli) on project example-staging-m2: Execution default-cli of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged failed: BUG: finalizeDeploy invoked before deployPerModule?
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy-staged failed: BUG: finalizeDeploy invoked before deployPerModule?
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
      Caused by: java.lang.NullPointerException: BUG: finalizeDeploy invoked before deployPerModule?
      at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
      at org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy(StagingDeployStrategy.java:106)
      at org.sonatype.nexus.maven.staging.deploy.DeployStagedMojo.execute(DeployStagedMojo.java:53)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      ... 20 more
      

        Attachments

          Activity

            People

            • Assignee:
              plynch Peter Lynch
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: