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?

Sonatype JIRA | Peter Lynch | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The following scenario works with nexus-staging-maven-plugin 1.5.1, but not 1.6.1. {noformat} mvn clean deploy -DskipRemoteStaging=true mvn nexus-staging:deploy-staged {noformat} 1.6.1 fails using Maven 2.2.1/3.0.4/3.2.2 with: {noformat} [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 {noformat}

    Sonatype JIRA | 3 years ago | Peter Lynch
    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?
  2. 0

    Graphic issues

    GitHub | 4 years ago | skaldarnar
    java.lang.NullPointerException: Vertex elements for chunk mesh segment #0 must not be null
  3. 0

    IDEA 14 plugin exception

    GitHub | 2 years ago | lrozenblyum
    java.lang.NullPointerException: No runtime environment is configured. Maybe because the project has no jdk.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BungeeCord error. Cant Login.

    GitHub | 3 years ago | Nojus741
    java.lang.NullPointerException: info
  6. 0

    Creating server fails with: URI template of the newly created target must not be null

    GitHub | 3 years ago | gtoff
    java.lang.NullPointerException: URI template of the newly created target must not be null.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    BUG: finalizeDeploy invoked before deployPerModule?

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
    1 frame
  3. org.sonatype.nexus
    DeployStagedMojo.execute
    1. org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy(StagingDeployStrategy.java:106)
    2. org.sonatype.nexus.maven.staging.deploy.DeployStagedMojo.execute(DeployStagedMojo.java:53)
    2 frames
  4. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    1 frame
  5. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    9 frames
  6. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    3 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:483)
    4 frames
  8. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    4 frames