maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WAGON-463) url of 'central' maven repo not fetched from settings.xml
Date Wed, 04 Jan 2017 20:37:58 GMT

     [ https://issues.apache.org/jira/browse/WAGON-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov updated WAGON-463:
---------------------------------
    Affects Version/s: 2.10

> 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
>    Affects Versions: 2.10
>            Reporter: Bert Koorengevel
>
> Using Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01: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:
> {noformat}
>   <profiles>
>     <profile>
>       <id>artifactory</id>
>       <repositories>
>         <repository>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>           <id>central</id>
>           <name>libs-release</name>
>           <url>https://ourserver.intranet/artifactory/libs-release</url>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>           <id>central</id>
>           <name>plugins-release</name>
>           <url>https://ourserver.intranet/artifactory/plugins-release</url>
>         </pluginRepository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
>   <activeProfiles>
>     <activeProfile>artifactory</activeProfile>
>   </activeProfiles>
> {noformat}
> This works fine.... except for one project that has a dependency with org.hibernate:hibernate-validator:jar:5.2.4.Final
> I suspect what triggers the error is an odd scope in a dependencyMamagement section.
In hibernate-validator-parent-5.2.4.Final.pom the dependency to org.jboss.arquillian:arquillian-bom
is set with scope 'import'.
> Here's a pom.xml to reproduce the issue:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <project>
>     <!-- This is the Maven Model version which MUST be 4.0.0 !!! -->
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>foobar</groupId>
>     <artifactId>foobar</artifactId>
>     <version>0.0</version>
>     <dependencies>
>         <dependency>
>             <groupId>org.hibernate</groupId>
>             <artifactId>hibernate-validator</artifactId>
>             <version>5.2.4.Final</version>
>         </dependency>
>     </dependencies>
> </project>
> {noformat}
> Remove the folder org.jboss from your local repository, then run 'mvn compile'. My output:
> {noformat}
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building foobar 0.0
> [INFO] ------------------------------------------------------------------------
> 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.2 KB/sec)
> Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.2/shrinkwrap-bom-1.2.2.pom
> Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.1.1/shrinkwrap-resolver-bom-2.1.1.pom
> 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
> {noformat}
> 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,
but from the default URL.
> Full log when ran with -X:
> {noformat}
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
> Maven home: C:\Program Files\Maven
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_92\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> [DEBUG] Created new class realm maven.api
> [DEBUG] Importing foreign packages into class realm maven.api
> [DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
> [DEBUG]   Imported: javax.enterprise.util.* < plexus.core
> [DEBUG]   Imported: javax.inject.* < plexus.core
> [DEBUG]   Imported: org.apache.maven.* < plexus.core
> [DEBUG]   Imported: org.apache.maven.artifact < plexus.core
> [DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
> [DEBUG]   Imported: org.apache.maven.cli < plexus.core
> [DEBUG]   Imported: org.apache.maven.configuration < plexus.core
> [DEBUG]   Imported: org.apache.maven.exception < plexus.core
> [DEBUG]   Imported: org.apache.maven.execution < plexus.core
> [DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
> [DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
> [DEBUG]   Imported: org.apache.maven.model < plexus.core
> [DEBUG]   Imported: org.apache.maven.monitor < plexus.core
> [DEBUG]   Imported: org.apache.maven.plugin < plexus.core
> [DEBUG]   Imported: org.apache.maven.profiles < plexus.core
> [DEBUG]   Imported: org.apache.maven.project < plexus.core
> [DEBUG]   Imported: org.apache.maven.reporting < plexus.core
> [DEBUG]   Imported: org.apache.maven.repository < plexus.core
> [DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
> [DEBUG]   Imported: org.apache.maven.settings < plexus.core
> [DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
> [DEBUG]   Imported: org.apache.maven.usability < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
> [DEBUG]   Imported: org.codehaus.classworlds < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.* < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.version < plexus.core
> [DEBUG]   Imported: org.slf4j.* < plexus.core
> [DEBUG]   Imported: org.slf4j.helpers.* < plexus.core
> [DEBUG]   Imported: org.slf4j.spi.* < plexus.core
> [DEBUG] Populating class realm maven.api
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading global settings from C:\Program Files\Maven\conf\settings.xml
> [DEBUG] Reading user settings from C:\Users\m08j331\.m2\settings.xml
> [DEBUG] Reading global toolchains from C:\Program Files\Maven\conf\toolchains.xml
> [DEBUG] Reading user toolchains from C:\Users\m08j331\.m2\toolchains.xml
> [DEBUG] Using local repository at C:\MavenRepo
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:\MavenRepo
> [INFO] Scanning for projects...
> [DEBUG] Extension realms for project foobar:foobar:jar:0.0: (none)
> [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent:
null]
> [DEBUG] === REACTOR BUILD PLAN ================================================
> [DEBUG] Project: foobar:foobar:jar:0.0
> [DEBUG] Tasks:   [compile]
> [DEBUG] Style:   Regular
> [DEBUG] =======================================================================
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building foobar 0.0
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources,
generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile, process-test-classes, test,
prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify,
install, deploy]
> [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
> [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
> [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources,
generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile, process-test-classes, test,
prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify,
install, deploy]
> [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
> [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
> [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources,
generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile, process-test-classes, test,
prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify,
install, deploy]
> [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
> [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
> [DEBUG] === PROJECT BUILD PLAN ================================================
> [DEBUG] Project:       foobar:foobar:0.0
> [DEBUG] Dependencies (collect): []
> [DEBUG] Dependencies (resolve): [compile]
> [DEBUG] Repositories (dependencies): [central (https://ourserver.intranet/artifactory/libs-release,
default, releases)]
> [DEBUG] Repositories (plugins)     : [central (https://ourserver.intranet/artifactory/plugins-release,
default, releases)]
> [DEBUG] -----------------------------------------------------------------------
> [DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.6:resources
(default-resources)
> [DEBUG] Style:         Regular
> [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
>   <buildFilters default-value="${project.build.filters}"/>
>   <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
>   <escapeString>${maven.resources.escapeString}</escapeString>
>   <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
>   <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
>   <outputDirectory default-value="${project.build.outputDirectory}"/>
>   <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
>   <project default-value="${project}"/>
>   <resources default-value="${project.resources}"/>
>   <session default-value="${session}"/>
>   <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
>   <useBuildFilters default-value="true"/>
>   <useDefaultDelimiters default-value="true"/>
> </configuration>
> [DEBUG] -----------------------------------------------------------------------
> [DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
> [DEBUG] Style:         Regular
> [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
>   <basedir default-value="${basedir}"/>
>   <buildDirectory default-value="${project.build.directory}"/>
>   <classpathElements default-value="${project.compileClasspathElements}"/>
>   <compileSourceRoots default-value="${project.compileSourceRoots}"/>
>   <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
>   <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy>
>   <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
>   <debug default-value="true">${maven.compiler.debug}</debug>
>   <debuglevel>${maven.compiler.debuglevel}</debuglevel>
>   <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
>   <executable>${maven.compiler.executable}</executable>
>   <failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
>   <forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerUse}</forceJavacCompilerUse>
>   <fork default-value="false">${maven.compiler.fork}</fork>
>   <generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/>
>   <maxmem>${maven.compiler.maxmem}</maxmem>
>   <meminitial>${maven.compiler.meminitial}</meminitial>
>   <mojoExecution>${mojoExecution}</mojoExecution>
>   <optimize default-value="false">${maven.compiler.optimize}</optimize>
>   <outputDirectory default-value="${project.build.outputDirectory}"/>
>   <projectArtifact default-value="${project.artifact}"/>
>   <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
>   <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
>   <skipMain>${maven.main.skip}</skipMain>
>   <skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarning}</skipMultiThreadWarning>
>   <source default-value="1.5">${maven.compiler.source}</source>
>   <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
>   <target default-value="1.5">${maven.compiler.target}</target>
>   <useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompilation}</useIncrementalCompilation>
>   <verbose default-value="false">${maven.compiler.verbose}</verbose>
>   <mavenSession default-value="${session}"/>
>   <session default-value="${session}"/>
> </configuration>
> [DEBUG] =======================================================================
> [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
> 4/11 KB   
> 8/11 KB   
> 9/11 KB   
> 11/11 KB   
>            
> 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 32.9 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
> [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0,
ConflictMarker.nodeCount=2, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=1,
ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2,
ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=729, DefaultDependencyCollector.transformTime=5}
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.088 s
> [INFO] Finished at: 2016-09-06T12:54:48+02:00
> [INFO] Final Memory: 9M/150M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project foobar: Could not resolve dependencies for
project foobar:foobar:jar: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:jar: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:245)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
> 	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:863)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> 	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:jar: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:329)
> 	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:198)
> 	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:1192)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:455)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:421)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:411)
> 	at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:1226)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:455)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:421)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:411)
> 	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)
> 	... 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
> [ERROR] 
> [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/DependencyResolutionException
> {noformat}



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

Mime
View raw message