Uploaded image for project: 'Community Support - Open Source Project Repository Hosting'
  1. Community Support - Open Source Project Repository Hosting
  2. OSSRH-16433

Cannot deploy release: could not transfer artifact (Forbidden)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed

      Description

      Probably I do not have permissions to deploy releases in subdirectories of the biz/gabrys (granted by OSSRH-13508).

      I currently working on several projects:

      • EasyBundle (biz.gabrys:easy-bundle)
      • LessCSS Compiler (biz.gabrys.lesscss:compiler)
      • Extended LessCSS Compiler (biz.gabrys.lesscss:extended-compiler)
      • Maven Plugin Utils (biz.gabrys.maven:plugin-utils)
      • LessCSS Maven Plugin (biz.gabrys.maven.plugins:lesscss-maven-plugin)
      • CSS Splitter Maven Plugin (biz.gabrys.maven.plugin:css-splitter-maven-plugin)
      • Minify Maven Plugin (biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin)

      I can deploy snapshots for all projects (https://oss.sonatype.org/content/repositories/snapshots/biz/gabrys/).

      I successfully deployed EasyBundle 1.0 release at 30-Jan-2015 (1.1 at 28-Feb-2015).

      Today I tried to deploy Minify Maven Plugin release, but I received an error:

      [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ minify-maven-plugin ---
      [INFO] Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar
      [INFO] Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.786 s
      [INFO] Finished at: 2015-07-06T21:41:02+02:00
      [INFO] Final Memory: 30M/422M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project minify-maven-plugin: Failed to deploy artifacts: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar:1.6.3 from/to ossrh (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden. -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project minify-maven-plugin: Failed to deploy artifacts: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar:1.6.3 from/to ossrh (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden.
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
      	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:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
      	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:497)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar:1.6.3 from/to ossrh (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden.
      	at org.apache.maven.plugin.deploy.DeployMojo.deployProject(DeployMojo.java:284)
      	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:169)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      	... 20 more
      Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar:1.6.3 from/to ossrh (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden.
      	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:143)
      	at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:171)
      	at org.apache.maven.plugin.deploy.DeployMojo.deployProject(DeployMojo.java:250)
      	... 23 more
      Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar:1.6.3 from/to ossrh (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden.
      	at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:317)
      	at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:245)
      	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:413)
      	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:139)
      	... 25 more
      Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact biz.gabrys.forks.com.samaxes.maven:minify-maven-plugin:jar:1.6.3 from/to ossrh (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden.
      	at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put(BasicRepositoryConnector.java:274)
      	at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:311)
      	... 28 more
      Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/biz/gabrys/forks/com/samaxes/maven/minify-maven-plugin/1.6.3/minify-maven-plugin-1.6.3.jar, ReasonPhrase: Forbidden.
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:617)
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:541)
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:523)
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:517)
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:497)
      	at org.eclipse.aether.transport.wagon.WagonTransporter$PutTaskRunner.run(WagonTransporter.java:644)
      	at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
      	at org.eclipse.aether.transport.wagon.WagonTransporter.put(WagonTransporter.java:410)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask(BasicRepositoryConnector.java:510)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
      	... 30 more
      [ERROR] 
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      User credentials are correct, because I deployed snapshot. I think this issue is similar to the OSSRH-13253.

        Attachments

          Activity

            People

            Assignee:
            jorlina Joel Orlina
            Reporter:
            agabrys Adam Gabryƛ
            Last Updated By:
            Joel Orlina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title