Hi, What version of Maven are you using? Does this occur only when deploying? Are you using a certain authenticated user for deployment and resolution? Is anonymous access enabled? Do you see any errors in Artifactory's log when this happens?
On Mon, Aug 22, 2011 at 11:31 PM, pradeep <[email protected]> wrote: > We are using artifactory-2.3.1 as internal maven repository. We > occasionally > get the following error for different artifacts. There is no certain > pattern > we can find. > > "maven-metadata.xml" from the url(in the error) is not the latest. > > Any help appreciated. > > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1:07.968s > [INFO] Finished at: Mon Aug 22 15:42:54 EDT 2011 > [INFO] Final Memory: 24M/85M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on > project artifactID: Failed to retrieve remote metadata > groupID:artifactID:versionID/maven-metadata.xml: Could not transfer > metadata > groupID:artifactID:versionID/maven-metadata.xml from/to internal > (http://artifactory.example.com:8999/artifactory/libs-snapshots): Access > denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy > (default-deploy) on project artifactID: Failed to retrieve remote metadata > groupID:artifactID:versionID/maven-metadata.xml: Could not transfer > metadata > groupID:artifactID:versionID/maven-metadata.xml from/to internal > (http://artifactory.example.com:8999/artifactory/libs-snapshots): Access > denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) > at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) > at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) > 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:316) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:134) > 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.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.MojoExecutionException: Failed to > retrieve remote metadata groupID:artifactID:versionID/maven-metadata.xml: > Could not transfer metadata groupID:artifactID:versionID/maven-metadata.xml > from/to internal > (http://artifactory.example.com:8999/artifactory/libs-snapshots): Access > denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) > at > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) > at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) > ... 19 more > Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: > Failed to retrieve remote metadata > groupID:artifactID:versionID/maven-metadata.xml: Could not transfer > metadata > groupID:artifactID:versionID/maven-metadata.xml from/to internal > (http://artifactory.example.com:8999/artifactory/libs-snapshots): Access > denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > at > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140) > at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:156) > ... 21 more > Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to > retrieve remote metadata groupID:artifactID:versionID/maven-metadata.xml: > Could not transfer metadata groupID:artifactID:versionID/maven-metadata.xml > from/to internal > (http://artifactory.example.com:8999/artifactory/libs-snapshots): Access > denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > at > > org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:361) > at > > org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:214) > at > > org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:329) > at > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136) > ... 22 more > Caused by: org.sonatype.aether.transfer.MetadataTransferException: Could > not transfer metadata groupID:artifactID:versionID/maven-metadata.xml > from/to internal > (http://artifactory.example.com:8999/artifactory/libs-snapshots): Access > denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$3.wrap(WagonRepositoryConnector.java:917) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$3.wrap(WagonRepositoryConnector.java:908) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:681) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:675) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:420) > at > > org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:339) > ... 25 more > Caused by: org.apache.maven.wagon.authorization.AuthorizationException: > Access denied to: > > http://artifactory.example.com:8999/artifactory/libs-snapshots/groupID/artifactID/versionID/maven-metadata.xml > at > > org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119) > at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) > at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) > at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:590) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > [ERROR] > > -- > View this message in context: > http://forums.jfrog.org/Maven-fails-to-deploy-occationally-Could-not-transfer-metadata-Access-denied-to-error-tp6713183p6713183.html > Sent from the Artifactory - Users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Artifactory-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/artifactory-users >
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
