org.apache.maven.lifecycle.LifecycleExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Our daily hudson nightly build failed tonight with the following error. We tried to repeat it, but without succes. Configuration should be ok, because all of the previous builds were deployed succesfully. {code:title=Error} [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from andromda-snapshots Uploading: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom 4/75K 8/75K 12/75K 16/75K 20/75K 24/75K 28/75K 32/75K 36/75K 40/75K 44/75K 48/75K 52/75K 56/75K 60/75K 64/75K 68/75K 72/75K 75/75K [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 19 more Caused by: org.apache.maven.wagon.TransferFailedException: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:352) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) ... 20 more Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:197) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) ... 22 more [INFO] ------------------------------------------------------------------------ {code} {code:title=Configuration} in pom.xml: <distributionManagement> <repository> <id>andromda-releases</id> <name>Andromda Staging Repository</name> <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url> <uniqueVersion>false</uniqueVersion> </repository> <snapshotRepository> <id>andromda-snapshots</id> <name>Andromda Snapshot Repository</name> <url>http://oss.sonatype.org/content/repositories/snapshots</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> and in settings.xml: <server> <id>andromda-releases</id> <username>andromda</username> <password>......</password> </server> <server> <id>andromda-snapshots</id> <username>andromda</username> <password>......</password> </server> {code}
    via by Michail Plushnikov,
  • Our daily hudson nightly build failed tonight with the following error. We tried to repeat it, but without succes. Configuration should be ok, because all of the previous builds were deployed succesfully. {code:title=Error} [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from andromda-snapshots Uploading: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom 4/75K 8/75K 12/75K 16/75K 20/75K 24/75K 28/75K 32/75K 36/75K 40/75K 44/75K 48/75K 52/75K 56/75K 60/75K 64/75K 68/75K 72/75K 75/75K [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 19 more Caused by: org.apache.maven.wagon.TransferFailedException: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:352) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) ... 20 more Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:197) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) ... 22 more [INFO] ------------------------------------------------------------------------ {code} {code:title=Configuration} in pom.xml: <distributionManagement> <repository> <id>andromda-releases</id> <name>Andromda Staging Repository</name> <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url> <uniqueVersion>false</uniqueVersion> </repository> <snapshotRepository> <id>andromda-snapshots</id> <name>Andromda Snapshot Repository</name> <url>http://oss.sonatype.org/content/repositories/snapshots</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> and in settings.xml: <server> <id>andromda-releases</id> <username>andromda</username> <password>......</password> </server> <server> <id>andromda-snapshots</id> <username>andromda</username> <password>......</password> </server> {code}
    via by Michail Plushnikov,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 19 more Caused by: org.apache.maven.wagon.TransferFailedException: Authorization failed: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:352) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) ... 20 more Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://oss.sonatype.org/content/repositories/snapshots/org/andromda/andromda/3.4-SNAPSHOT/andromda-3.4-SNAPSHOT.pom at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:197) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) ... 22 more
    No Bugmate found.