mirror of https://github.com/apache/maven.git
[MNG-4845] [regression] MavenProject.getDependencyArtifact() returns artifacts without version for dependency with version range
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1003537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5d7c76403d
commit
a54c02e3f3
maven-core/src/main/java/org/apache/maven/lifecycle/internal
|
@ -109,13 +109,13 @@ public class LifecycleDependencyResolver
|
|||
Map<String, Artifact> map = new HashMap<String, Artifact>();
|
||||
for ( Artifact artifact : artifacts )
|
||||
{
|
||||
map.put( artifact.getId(), artifact );
|
||||
map.put( artifact.getDependencyConflictId(), artifact );
|
||||
}
|
||||
for ( Artifact artifact : project.getDependencyArtifacts() )
|
||||
{
|
||||
if ( artifact.getFile() == null )
|
||||
{
|
||||
Artifact resolved = map.get( artifact.getId() );
|
||||
Artifact resolved = map.get( artifact.getDependencyConflictId() );
|
||||
if ( resolved != null )
|
||||
{
|
||||
artifact.setFile( resolved.getFile() );
|
||||
|
|
Loading…
Reference in New Issue