org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy (default-deploy) on project javacpp: Execution default-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy failed: Server credentials with ID "sonatype-nexus-staging" not found!

GitHub | jenniferwillow | 3 months ago
  1. 0

    Server credentials with ID "sonatype-nexus-staging" not found!

    GitHub | 3 months ago | jenniferwillow
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy (default-deploy) on project javacpp: Execution default-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy failed: Server credentials with ID "sonatype-nexus-staging" not found!
  2. 0

    GitHub comment 2#144808848

    GitHub | 1 year ago | rultor
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy (jcabi-deploy-to-sonatype) on project smsowl-client: Execution jcabi-deploy-to-sonatype of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6:deploy failed: Nexus connection problem to URL [https://oss.sonatype.org/ ]: 401 - Unauthorized
  3. 0

    GitHub comment 3#218990270

    GitHub | 7 months ago | rultor
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.3:deploy (deploy-to-sonatype) on project msbotframework4j-parent: Execution deploy-to-sonatype of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.3:deploy failed: Server credentials with ID "ossrh" not found!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    It is very common for users to give the wrong URL to the required nexus-staging-maven-plugin parameter nexusUrl. Typically this fails with a seemingly unrelated error message. Example: {noformat} [DEBUG] Configuring mojo 'org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy' with basic configurator --> [DEBUG] (f) artifact = com.ccadllc.bundles:lucene:bundle:4.5.0 [DEBUG] (f) attachedArtifacts = [com.ccadllc.bundles:lucene:java-source:sources:4.5.0] [DEBUG] (f) autoDropAfterRelease = true [DEBUG] (f) autoReleaseAfterClose = false [DEBUG] (f) detectBuildFailures = true [DEBUG] (f) keepStagingRepositoryOnCloseRuleFailure = true [DEBUG] (f) keepStagingRepositoryOnFailure = true [DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession@1cdfd19 [DEBUG] (f) mojoExecution = org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy {execution: default} [DEBUG] (f) nexusUrl = https://localhost:8081/nexus/service/local/staging/deploy/maven2/ [DEBUG] (f) offline = false [DEBUG] (f) packaging = bundle [DEBUG] (f) pluginArtifactId = nexus-staging-maven-plugin [DEBUG] (f) pluginGroupId = org.sonatype.plugins [DEBUG] (f) pluginVersion = 1.6.1 [DEBUG] (f) pomFile = /home/user/development/bundles/lucene/pom.xml [DEBUG] (f) serverId = bundles-releases [DEBUG] (f) sslAllowAll = true [DEBUG] (f) sslInsecure = false [DEBUG] (f) stagingProfileId = fa9605f3c35a4 [DEBUG] (f) stagingProgressPauseDurationSeconds = 3 [DEBUG] (f) stagingProgressTimeoutMinutes = 5 [DEBUG] -- end configuration -- [DEBUG] Parameters{pluginGav='org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1', deferredDirectoryRoot=/home/user/development/bundles/lucene/target/nexus-staging/deferred, stagingDirectoryRoot=/home/user/development/bundles/lucene/target/nexus-staging/staging, nexusUrl='https://localhost/nexus/service/local/staging/deploy/maven2/', serverId='bundles-releases', keepStagingRepositoryOnCloseRuleFailure=true, keepStagingRepositoryOnFailure=false, skipStagingRepositoryClose=false, autoReleaseAfterClose=false, autoDropAfterRelease=true, stagingProfileId='null', stagingRepositoryId='null', stagingActionMessages=org.sonatype.nexus.maven.staging.StagingActionMessages@ab7af2, tags=null, stagingProgressTimeoutMinutes=5, stagingProgressPauseDurationSeconds=3, sslInsecure=false, sslAllowAll=true} [DEBUG] Parameters{pluginGav='org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1', deferredDirectoryRoot=/home/user/development/bundles/lucene/target/nexus-staging/deferred, stagingDirectoryRoot=/home/user/development/bundles/lucene/target/nexus-staging/staging, nexusUrl='https://localhost/nexus/service/local/staging/deploy/maven2/', serverId='bundles-releases', keepStagingRepositoryOnCloseRuleFailure=true, keepStagingRepositoryOnFailure=true, skipStagingRepositoryClose=false, autoReleaseAfterClose=false, autoDropAfterRelease=true, stagingProfileId='fa9605f3c35a4', stagingRepositoryId='null', stagingActionMessages=org.sonatype.nexus.maven.staging.StagingActionMessages@ab7af2, tags=null, stagingProgressTimeoutMinutes=5, stagingProgressPauseDurationSeconds=3, sslInsecure=false, sslAllowAll=true} [INFO] Performing local staging (local stagingDirectory="/home/user/development/bundles/lucene/target/nexus-staging/staging")... [main] INFO org.sonatype.nexus.maven.staging.remote.RemoteNexus - + Using server credentials "bundles-releases" from Maven settings. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.520s [INFO] Finished at: Thu May 08 13:43:13 EDT 2014 [INFO] Final Memory: 13M/490M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy (default) on project lucene: Execution default of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy (default) on project lucene: Execution default of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) 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 of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile 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.IllegalArgumentException: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile at org.sonatype.nexus.maven.staging.remote.RemoteNexus.createNexusClient(RemoteNexus.java:210) at org.sonatype.nexus.maven.staging.remote.RemoteNexus.<init>(RemoteNexus.java:104) at org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.createRemoteNexus(AbstractStagingDeployStrategy.java:56) at org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.deployPerModule(StagingDeployStrategy.java:73) at org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute(DeployMojo.java:192) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more Caused by: org.sonatype.nexus.client.core.exception.NexusClientErrorResponseException: Cannot find a matching staging profile at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.convertIf400WithErrorMessage(JerseyNexusClient.java:257) at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.convertIfKnown(JerseyNexusClient.java:292) at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.convert(JerseyNexusClient.java:268) at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.getStatus(JerseyNexusClient.java:157) at org.sonatype.nexus.client.internal.rest.AbstractNexusClient.initializeConnection(AbstractNexusClient.java:87) at org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.<init>(JerseyNexusClient.java:91) at org.sonatype.nexus.client.rest.jersey.NexusClientFactoryImpl.createFor(NexusClientFactoryImpl.java:123) at org.sonatype.nexus.maven.staging.remote.RemoteNexus.createNexusClient(RemoteNexus.java:191) ... 25 more [ERROR] {noformat} We should do a better job validating this URL value.

    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 (default) on project lucene: Execution default of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.1:deploy failed: Nexus connection problem to URL [https://localhost/nexus/service/local/staging/deploy/maven2/ ]: Cannot find a matching staging profile
  6. 0

    Unexpected error when backend is offline

    GitHub | 2 years ago | mkl-eea-sk
    java.lang.IllegalArgumentException: Node with supplied id was not found!

    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.IllegalArgumentException

      Server credentials with ID "sonatype-nexus-staging" not found!

      at org.sonatype.nexus.maven.staging.remote.RemoteNexus.<init>()
    2. org.sonatype.nexus
      DeployMojo.execute
      1. org.sonatype.nexus.maven.staging.remote.RemoteNexus.<init>(RemoteNexus.java:81)
      2. org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.createRemoteNexus(AbstractStagingDeployStrategy.java:54)
      3. org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.deployPerModule(StagingDeployStrategy.java:70)
      4. org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute(DeployMojo.java:192)
      4 frames
    3. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      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:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      10 frames
    5. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      3 frames
    6. 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:498)
      4 frames
    7. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames