maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Syvalta <syva...@yahoo.com>
Subject Re: Maven 3 does not seem to like version ranges?
Date Fri, 18 Feb 2011 13:04:28 GMT

I'm running into this too. I tried to create a test project but unfortunately
the problem didn't reproduce there.

Some background:
- dependency to artifact with version range [1.0.1, 2.0), matching versions
[1.0.1, 1.0.2, 1.0.3-SNAPSHOT].
- problems occurs when 1.0.3-SNAPSHOT tries to load it's _released_ parent
pom.
- if parent of 1.0.3-SNAPSHOT is changed to a snapshot the build succeeds.

Some observations:
- when SNAPSHOT is resolved from local repository it's list of repositories
is empty. Also when it's parent is resolved it's list of repositories is
empty.
- org.apache.maven.model.building.DefaultModelBuilder.readParentExternally
fails because of that (no repositories)
- parent is not found from local repository because the key in repo tracking
properties is "test-parent-pom-1.0.1.pom>releases" but is searched with key
"test-parent-pom-1.0.1.pom>".

Stack trace from one point of execution:
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(org.sonatype.aether.RepositorySystemSession,
java.util.Collection<? extends
org.sonatype.aether.resolution.ArtifactRequest>) line: 237	
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(org.sonatype.aether.RepositorySystemSession,
org.sonatype.aether.resolution.ArtifactRequest) line: 214	
org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(java.lang.String,
java.lang.String, java.lang.String) line: 115	
org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(org.apache.maven.model.Model,
org.apache.maven.model.building.ModelBuildingRequest,
org.apache.maven.model.building.DefaultModelProblemCollector) line: 819	
org.apache.maven.model.building.DefaultModelBuilder.readParent(org.apache.maven.model.Model,
org.apache.maven.model.building.ModelBuildingRequest,
org.apache.maven.model.building.DefaultModelProblemCollector) line: 670	
org.apache.maven.model.building.DefaultModelBuilder.build(org.apache.maven.model.building.ModelBuildingRequest,
java.util.Collection<java.lang.String>) line: 308	
org.apache.maven.model.building.DefaultModelBuilder.build(org.apache.maven.model.building.ModelBuildingRequest)
line: 232	
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(org.sonatype.aether.RepositorySystemSession,
org.sonatype.aether.resolution.ArtifactDescriptorRequest,
org.sonatype.aether.resolution.ArtifactDescriptorResult) line: 308	
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(org.sonatype.aether.RepositorySystemSession,
org.sonatype.aether.resolution.ArtifactDescriptorRequest) line: 173	
org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(org.sonatype.aether.RepositorySystemSession,
org.sonatype.aether.collection.CollectResult,
java.util.LinkedList<org.sonatype.aether.impl.internal.GraphEdge>,
java.util.List<org.sonatype.aether.graph.Dependency>,
java.util.List<org.sonatype.aether.repository.RemoteRepository>,
org.sonatype.aether.collection.DependencySelector,
org.sonatype.aether.collection.DependencyManager,
org.sonatype.aether.collection.DependencyTraverser,
org.sonatype.aether.impl.internal.DataPool) line: 419	
org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(org.sonatype.aether.RepositorySystemSession,
org.sonatype.aether.collection.CollectRequest) line: 233	


-- 
View this message in context: http://maven.40175.n5.nabble.com/Maven-3-does-not-seem-to-like-version-ranges-tp3389402p3391039.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Mime
View raw message