maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Koorengevel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WAGON-463) url of 'central' maven repo not fetched from settings.xml
Date Tue, 06 Sep 2016 09:57:20 GMT
Bert Koorengevel created WAGON-463:
--------------------------------------

             Summary: url of 'central' maven repo not fetched from settings.xml
                 Key: WAGON-463
                 URL: https://issues.apache.org/jira/browse/WAGON-463
             Project: Maven Wagon
          Issue Type: Bug
            Reporter: Bert Koorengevel


Using Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T13:57:37+02:00)
of which I don't know what the Wagon version is (probably depends on the plugin)

In our organisation https://repo.maven.apache.org is unreachable behind a proxy, but there
is an Artifactory instance that serves as a mirror. So in the /conf/settings.xml we specify
a repository with id = central and the url of our Artifactory instance. 
This works fine.... except for one project that has a dependency with org.hibernate:hibernate-validator:jar:5.2.4.Final
Part of the Maven log:

````
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://ourserver.intranet/artifactory/libs-release
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://ourserver.intranet/artifactory/libs-release
with username=reader, password=***
Downloading: https://ourserver.intranet/artifactory/libs-release/org/jboss/arquillian/arquillian-bom/1.1.9.Final/arquillian-bom-1.1.9.Final.pom
Downloaded: https://ourserver.intranet/artifactory/libs-release/org/jboss/arquillian/arquillian-bom/1.1.9.Final/arquillian-bom-1.1.9.Final.pom
(11 KB at 30.3 KB/sec)
[DEBUG] Writing tracking file C:\MavenRepo\org\jboss\arquillian\arquillian-bom\1.1.9.Final\_remote.repositories
[DEBUG] Writing tracking file C:\MavenRepo\org\jboss\arquillian\arquillian-bom\1.1.9.Final\arquillian-bom-1.1.9.Final.pom.lastUpdated
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
with username=reader, password=***
Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.2/shrinkwrap-bom-1.2.2.pom
[DEBUG] Writing tracking file C:\MavenRepo\org\jboss\shrinkwrap\shrinkwrap-bom\1.2.2\shrinkwrap-bom-1.2.2.pom.lastUpdated
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
with username=reader, password=***
Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.1.1/shrinkwrap-resolver-bom-2.1.1.pom
[DEBUG] Writing tracking file C:\MavenRepo\org\jboss\shrinkwrap\resolver\shrinkwrap-resolver-bom\2.1.1\shrinkwrap-resolver-bom-2.1.1.pom.lastUpdated
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
with username=reader, password=***
Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-bom/2.0.0-alpha-7/shrinkwrap-descriptors-bom-2.0.0-alpha-7.pom
[DEBUG] Writing tracking file C:\MavenRepo\org\jboss\shrinkwrap\descriptors\shrinkwrap-descriptors-bom\2.0.0-alpha-7\shrinkwrap-descriptors-bom-2.0.0-alpha-7.pom.lastUpdated
````

You can see that the first transfer of arquillian-bom-1.1.9.Final.pom is fetched from our
own server and goes fine. The further BOMs are not downloaded through the URL you'd expect.
I suspect what triggers this is an odd dependency scope. In hibernate-validator-parent-5.2.4.Final.pom
the dependency to org.jboss.arquillian:arquillian-bom is set with scope 'import'.

Here is the full stack trace:
````
[ERROR] Failed to execute goal on project foobar: Could not resolve dependencies for project
foobar:foobar:pom:0.0: Failed to collect dependencies at org.hibernate:hibernate-validator:jar:5.2.4.Final:
 Failed to read artifact descriptor for org.hibernate:hibernate-validator:jar:5.2.4.Final:

 Could not transfer artifact org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.2.2 from/to central
(https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project
foobar: 
 Could not resolve dependencies for project foobar:foobar:pom:0.0: 
 Failed to collect dependencies at org.hibernate:hibernate-validator:jar:5.2.4.Final
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        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:498)
        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.project.DependencyResolutionException: 
 Could not resolve dependencies for project foobar:foobar:pom:0.0: 
 Failed to collect dependencies at org.hibernate:hibernate-validator:jar:5.2.4.Final
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:180)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 23 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect
dependencies at org.hibernate:hibernate-validator:jar:5.2.4.Final
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172)
        ... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact
descriptor for org.hibernate:hibernate-validator:jar:5.2.4.Final
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:349)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:218)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
        ... 26 more
Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer
artifact org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.2.2 from/to central (https://repo.maven.apache.org/maven2):
repo.maven.apache.org
        at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:177)
        at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:1167)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:451)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:417)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:407)
        at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:1201)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:451)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:417)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:407)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:340)
        ... 33 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact
org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.2.2 from/to central (https://repo.maven.apache.org/maven2):repo.maven.apache.org
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
        at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:173)
        ... 42 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact
org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.2.2 from/to central (https://repo.maven.apache.org/maven2):
repo.maven.apache.org
        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.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
        ... 45 more
Caused by: org.apache.maven.wagon.TransferFailedException: repo.maven.apache.org
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1066)
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:960)
        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.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:560)
        at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
        at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:404)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
        ... 50 more
Caused by: java.net.UnknownHostException: repo.maven.apache.org
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at org.apache.maven.wagon.providers.http.httpclient.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)
        at org.apache.maven.wagon.providers.http.httpclient.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:101)
        at org.apache.maven.wagon.providers.http.httpclient.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
        at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
        at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
        at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
        at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec.execute(RetryExec.java:86)
        at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
        at org.apache.maven.wagon.providers.http.httpclient.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
        at org.apache.maven.wagon.providers.http.httpclient.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:832)
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:983)
        ... 59 more
````



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message