maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: IT failure on Maven-doap plugin with maven >3.0.3
Date Sat, 31 Aug 2013 14:00:51 GMT
it was merged with wagon-http-shared when working on WAGON-388

Regards,

Hervé

Le samedi 31 août 2013 14:51:31 Robert Scholte a écrit :
> Where are the sources of wagon-http-shared4?
> 
> I don't see them here:
> 
> https://git-wip-us.apache.org/repos/asf/maven-wagon.git/?p=maven-wagon.git;a
> =tree;f=wagon-providers;h=1b6502eff9db183e9a72b44efff7fe5e0cb8da23;hb=HEAD
> 
> Robert
> 
> 
> Op Sat, 31 Aug 2013 13:29:37 +0200 schreef Robert Scholte
> 
> <rfscholte@apache.org>:
> > Recently I noticed several threads at Stackoverflow mentioning the same
> > exception.
> > 
> > I've tried it with the following version (in this order):
> > M3.1.0 > failed
> > M3.0.4 > success
> > M3.0.5 > success
> > M3.1.0 > success
> > 
> > So I changed the updatePolicy of the central repository to 'always'.
> > Now it still succeeds, but the log shows me the access denied exception
> > again.
> > My conclusion: Maven falls back to the file available in the local repo.
> > 
> > I thought it was an infrastructure issue at Maven Central, but it seems
> > wagon-related.
> > 
> > Robert
> > 
> > Op Sat, 31 Aug 2013 11:51:05 +0200 schreef Hervé BOUTEMY
> > 
> > <herve.boutemy@free.fr>:
> >> Really strange
> >> I can reproduce m-doap-p IT failures from my machine but not
> >> m-eclipse-p ones
> >> 
> >> notice in m-doap-p IT, the url should get a 404 not found
> >> but in m-eclipse-p IT, the url points to existing content
> >> 
> >> IMHO, the behaviour change between Maven versions is tied to MNG-5175
> >> change
> >> from wagon-http-lightweight to wagon-http
> >> But this doesn't explain the change in time: could it be related to
> >> changes in
> >> Maven central protection rules? Something about user-agents, to avoid
> >> scrapers?
> >> 
> >> We should try to look at what's happening on the wire, to check exact
> >> http
> >> request+reply during the IT
> >> Anybody with experience on such an investigation?
> >> 
> >> Regards,
> >> 
> >> Hervé
> >> 
> >> Le vendredi 30 août 2013 17:26:36 Robert Scholte a écrit :
> >>> The failing IT for the m-eclipse-p has a similar issue:
> >>> 
> >>> When trying to resolve the following dependency:
> >>>      <dependency>
> >>>      
> >>>        <groupId>junit</groupId>
> >>>        <artifactId>junit</artifactId>
> >>>        <version>[3.0,3.8.1]</version>
> >>>      
> >>>      </dependency>
> >>> 
> >>> it logs the following exception:
> >>> 
> >>> [WARNING] repository metadata for: 'artifact junit:junit' could not be
> >>> retrieved from repository: central due to an error: Authorization
> >>> failed:
> >>> Access denied to:
> >>> http://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml ,
> >>> ReasonPhrase:Denied Access.
> >>> [DEBUG] Exception
> >>> org.apache.maven.wagon.TransferFailedException: Authorization failed:
> >>> Access denied to:
> >>> http://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml ,
> >>> ReasonPhrase:Denied Access.
> >>> 
> >>> 	at
> >>> 
> >>> org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(Def
> >>> ault WagonManager.java:442) at
> >>> org.apache.maven.repository.legacy.DefaultWagonManager.getArtifactMetada
> >>> ta(D efaultWagonManager.java:206) at
> >>> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
> >>> anag er.resolve(DefaultRepositoryMetadataManager.java:132) at
> >>> org.apache.maven.project.artifact.MavenMetadataSource.retrieveAvailableV
> >>> ersi ons(MavenMetadataSource.java:435) at
> >>> org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollect
> >>> or.r ecurse(DefaultLegacyArtifactCollector.java:497) at
> >>> org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollect
> >>> or.c ollect(DefaultLegacyArtifactCollector.java:144) at
> >>> org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollect
> >>> or.c ollect(DefaultLegacyArtifactCollector.java:100) at
> >>> org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollect
> >>> or.c ollect(DefaultLegacyArtifactCollector.java:782) at
> >>> org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolutio
> >>> n(Ab stractIdeSupportMojo.java:559) at
> >>> org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSu
> >>> ppor tMojo.java:506) at
> >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
> >>> ldPl uginManager.java:106) at
> >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> >>> va:2 08) at
> >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> >>> va:1 53) at
> >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> >>> va:1 45) at
> >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> >>> Life cycleModuleBuilder.java:84) at
> >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> >>> Life cycleModuleBuilder.java:59) at
> >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild
> >>> (Lif ecycleStarter.java:183) at
> >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleSt
> >>> arte r.java:161) at
> >>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318) at
> >>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
> >>> 
> >>> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> >>> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> >>> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> >>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> 	at
> >>> 
> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> >>> a:39 ) at
> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> >>> Impl .java:25) at java.lang.reflect.Method.invoke(Method.java:597)
> >>> 
> >>> 	at
> >>> 
> >>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche
> >>> r.ja va:290) at
> >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2
> >>> 30)
> >>> 
> >>> 	at
> >>> 
> >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc
> >>> her. java:414) at
> >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357
> >>> )
> >>> Caused by: org.apache.maven.wagon.authorization.AuthorizationException:
> >>> Access denied to:
> >>> http://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml ,
> >>> ReasonPhrase:Denied Access.
> >>> 
> >>> 	at
> >>> 
> >>> org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputDat
> >>> a(Ab stractHttpClientWagon.java:928) 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.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(Def
> >>> ault WagonManager.java:351) ... 30 more
> >>> 
> >>> 
> >>> Op Thu, 29 Aug 2013 18:46:21 +0200 schreef Kristian Rosenvold
> >>> 
> >>> <kristian.rosenvold@gmail.com>:
> >>> > I see on Jenkins, that the IT's on the DOAP plugin fail once we pass
> >>> > maven 3.0.3. I extracted the following from the build.log file.
> >>> 
> >>> Anyone
> >>> 
> >>> > know what issue this is, and what workaround/fix might be applied ?
> >>> > 
> >>> > Kristian
> >>> > 
> >>> > 
> >>> > ------------------
> >>> > 
> >>> >        GroupId: org.apache.maven.its.doap
> >>> >        ArtifactId: maven-it-plugin
> >>> 
> >>> >        Metadata Type:
> >>> org.apache.maven.artifact.repository.metadata.ArtifactRepositoryMetadata
> >>> 
> >>> > could not be retrieved from repositories due to an error: repository
> >>> > metadata for: 'artifact org.apache.maven.its.doap:maven-it-plugin'
> >>> > could not be retrieved from repository: central due to an error:
> >>> 
> >>> > Authorization failed: Access denied to:
> >>> http://repo.maven.apache.org/maven2/org/apache/maven/its/doap/maven-it-p
> >>> lu
> >>> 
> >>> > gin/maven-metadata.xml , ReasonPhrase:Denied Access.
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.plugin.doap.DoapMojo.writeReleases(DoapMojo.java:1461)
> >>> 
> >>> >         at
> >>> 
> >>> org.apache.maven.plugin.doap.DoapMojo.writeDoapFile(DoapMojo.java:730)
> >>> 
> >>> >         at
> >>> > 
> >>> > org.apache.maven.plugin.doap.DoapMojo.execute(DoapMojo.java:443)
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
> >>> ld
> >>> 
> >>> > PluginManager.java:106)>
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> >>> va
> >>> 
> >>> > :208)>
> >>> > :
> >>> >         ... 19 more
> >>> >        
> >>> >        Caused by:
> >>> org.apache.maven.artifact.repository.metadata.RepositoryMetadataResoluti
> >>> on
> >>> 
> >>> > Exception: repository metadata for: 'artifact
> >>> > org.apache.maven.its.doap:maven-it-plugin' could not be retrieved
> >>> 
> >>> from
> >>> 
> >>> > repository: central due to an error: Authorization failed: Access
> >>> 
> >>> > denied to:
> >>> http://repo.maven.apache.org/maven2/org/apache/maven/its/doap/maven-it-p
> >>> lu
> >>> 
> >>> > gin/maven-metadata.xml , ReasonPhrase:Denied Access.
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
> >>> an
> >>> 
> >>> > ager.resolveAlways(DefaultRepositoryMetadataManager.java:397)>
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.plugin.doap.DoapMojo.writeReleases(DoapMojo.java:1456)
> >>> 
> >>> >         ... 23 more
> >>> >        
> >>> >        Caused by: org.apache.maven.wagon.TransferFailedException:
> >>> > Authorization failed: Access denied to:
> >>> http://repo.maven.apache.org/maven2/org/apache/maven/its/doap/maven-it-p
> >>> lu
> >>> 
> >>> > gin/maven-metadata.xml , ReasonPhrase:Denied Access.
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(Def
> >>> au
> >>> 
> >>> > ltWagonManager.java:442)>
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.repository.legacy.DefaultWagonManager.getArtifactMetada
> >>> ta
> >>> 
> >>> > FromDeploymentRepository(DefaultWagonManager.java:215)>
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
> >>> an
> >>> 
> >>> ager.getArtifactMetadataFromDeploymentRepository(DefaultRepositoryMetada
> >>> ta
> >>> 
> >>> > Manager.java:421)>
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
> >>> an
> >>> 
> >>> > ager.resolveAlways(DefaultRepositoryMetadataManager.java:393)>
> >>> > 
> >>> >         ... 24 more
> >>> >        
> >>> >        Caused by:
> >>> > org.apache.maven.wagon.authorization.AuthorizationException: Access
> >>> 
> >>> > denied to:
> >>> http://repo.maven.apache.org/maven2/org/apache/maven/its/doap/maven-it-p
> >>> lu
> >>> 
> >>> > gin/maven-metadata.xml , ReasonPhrase:Denied Access.
> >>> > 
> >>> >         at
> >>> 
> >>> org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputDat
> >>> a(
> >>> 
> >>> > AbstractHttpClientWagon.java:928)>
> >>> > 
> >>> >         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.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(Def
> >>> au
> >>> 
> >>> > ltWagonManager.java:351)>
> >>> > 
> >>> >         ... 27 more
> >>> >        
> >>> >        [ERROR]
> >>> > 
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>> > For additional commands, e-mail: dev-help@maven.apache.org
> >>> 
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: dev-help@maven.apache.org
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: dev-help@maven.apache.org
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message