org.apache.maven.wagon.TransferFailedException: Authorization failed: Not authorized.

JFrog JIRA | Dror Bereznitsky | 8 years ago
  1. 0

    I'm getting the following error while trying to get artifacts from the repository (replaced the repository URL with XXX): [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from central Dec 24, 2008 12:05:53 PM org.apache.commons.httpclient.HttpMethodBase processAuthenticationResponse INFO: Already tried to authenticate with 'Artifactory Realm' authentication realm at XXX, but still receiving: HTTP/1.1 401 Unauthorized [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-plugin-plugin' could not be retrieved from repository: central due to an error: Authorization failed: Not authorized. [INFO] Repository 'central' will be blacklisted [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from snapshots Dec 24, 2008 12:05:53 PM org.apache.commons.httpclient.HttpMethodBase processAuthenticationResponse INFO: Already tried to authenticate with 'Artifactory Realm' authentication realm at XXX but still receiving: HTTP/1.1 401 Unauthorized [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-plugin-plugin' could not be retrieved from repository: snapshots due to an error: Authorization failed: Not authorized. [INFO] Repository 'snapshots' will be blacklisted The underlying exception is: [DEBUG] Exception org.apache.maven.wagon.TransferFailedException: Authorization failed: Not authorized. at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:547) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:363) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:364) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97) at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65) at org.apache.maven.artifact.transform.LatestArtifactTransformation.transformForResolve(LatestArtifactTransformation.java:41) at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:57) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:123) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:524) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:231) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:105) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersionManager.java:673) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:187) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:167) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1016) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:980) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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:585) 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.wagon.authorization.AuthorizationException: Not authorized. at org.apache.maven.wagon.providers.webdav.WebDavWagon.get(WebDavWagon.java:458) at org.apache.maven.wagon.providers.webdav.WebDavWagon.get(WebDavWagon.java:377) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462) ... 34 more When checking the repository effective permission I can see that I have all possible permissions. I also cannot find anything related in the access and artifactory logs.

    JFrog JIRA | 8 years ago | Dror Bereznitsky
    org.apache.maven.wagon.TransferFailedException: Authorization failed: Not authorized.
  2. 0

    I'm getting the following error while trying to get artifacts from the repository (replaced the repository URL with XXX): [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from central Dec 24, 2008 12:05:53 PM org.apache.commons.httpclient.HttpMethodBase processAuthenticationResponse INFO: Already tried to authenticate with 'Artifactory Realm' authentication realm at XXX, but still receiving: HTTP/1.1 401 Unauthorized [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-plugin-plugin' could not be retrieved from repository: central due to an error: Authorization failed: Not authorized. [INFO] Repository 'central' will be blacklisted [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for updates from snapshots Dec 24, 2008 12:05:53 PM org.apache.commons.httpclient.HttpMethodBase processAuthenticationResponse INFO: Already tried to authenticate with 'Artifactory Realm' authentication realm at XXX but still receiving: HTTP/1.1 401 Unauthorized [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-plugin-plugin' could not be retrieved from repository: snapshots due to an error: Authorization failed: Not authorized. [INFO] Repository 'snapshots' will be blacklisted The underlying exception is: [DEBUG] Exception org.apache.maven.wagon.TransferFailedException: Authorization failed: Not authorized. at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:547) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:363) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:364) at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97) at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65) at org.apache.maven.artifact.transform.LatestArtifactTransformation.transformForResolve(LatestArtifactTransformation.java:41) at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:57) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:123) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:524) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:231) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:105) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersionManager.java:673) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:187) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:167) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1016) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:980) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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:585) 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.wagon.authorization.AuthorizationException: Not authorized. at org.apache.maven.wagon.providers.webdav.WebDavWagon.get(WebDavWagon.java:458) at org.apache.maven.wagon.providers.webdav.WebDavWagon.get(WebDavWagon.java:377) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462) ... 34 more When checking the repository effective permission I can see that I have all possible permissions. I also cannot find anything related in the access and artifactory logs.

    JFrog JIRA | 8 years ago | Dror Bereznitsky
    org.apache.maven.wagon.TransferFailedException: Authorization failed: Not authorized.
  3. 0

    [JUDDI-878] Fix Jboss AS 7.x deployment - ASF JIRA

    apache.org | 11 months ago
    org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.felix:maven-bundle-plugin:1.4.0 or one of its dependencies could not be resolved: Failed t iptor for org.apache.felix:maven-bundle-plugin:jar:1.4.0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [MNGECLIPSE-1953] Credentials in settings.xml not used when resolving archetype artifact - Sonatype JIRA

    sonatype.org | 11 months ago
    org.apache.maven.artifact.resolver.ArtifactResolutionException: Authorization failed: Transfer failed: Not authorized foo.bar.maven.archetypes:an-archetype:pom:1.0-SNAPSHOT from the specified remote repositories: archetype (https:
  6. 0

    maven- eclipse - download the dependencies jars

    Stack Overflow | 4 years ago | med_alpa
    org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact tn.cck.atag1_0_0:parent:pom:1.0.0-SNAPSHOT from/to central (https://v

    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. org.apache.maven.wagon.authorization.AuthorizationException

      Not authorized.

      at org.apache.maven.wagon.providers.webdav.WebDavWagon.get()
    2. Maven Wagon WebDav Provider
      WebDavWagon.get
      1. org.apache.maven.wagon.providers.webdav.WebDavWagon.get(WebDavWagon.java:458)
      2. org.apache.maven.wagon.providers.webdav.WebDavWagon.get(WebDavWagon.java:377)
      2 frames
    3. Maven
      MavenMetadataSource.retrieve
      1. org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462)
      2. org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:363)
      3. org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:364)
      4. org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
      5. org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65)
      6. org.apache.maven.artifact.transform.LatestArtifactTransformation.transformForResolve(LatestArtifactTransformation.java:41)
      7. org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:57)
      8. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:123)
      9. org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
      10. org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:524)
      11. org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:231)
      12. org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:105)
      12 frames
    4. Maven Core
      DefaultPluginVersionManager.resolvePluginVersion
      1. org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersionManager.java:673)
      2. org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:187)
      3. org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
      3 frames
    5. Maven Plugin
      DefaultPluginManager.verifyPlugin
      1. org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:167)
      1 frame
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1016)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:980)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      7. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      8. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      10 frames
    7. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames