Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 2.0.4
-
Fix Version/s: None
-
Component/s: Dependencies
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
in org.apache.maven.project.inheritance.DefaultModelInheritanceAssembler:
private void assembleDependencyInheritance( Model child, Model parent )
{
Map depsMap = new HashMap();
List deps = parent.getDependencies();
if ( deps != null )
{
for ( Iterator it = deps.iterator(); it.hasNext(); )
{
Dependency dependency = (Dependency) it.next();
depsMap.put( dependency.getManagementKey(), dependency );
}
}
deps = child.getDependencies();
if ( deps != null )
{
for ( Iterator it = deps.iterator(); it.hasNext(); )
{ Dependency dependency = (Dependency) it.next(); depsMap.put( dependency.getManagementKey(), dependency ); } }
}
child.setDependencies( new ArrayList( depsMap.values() ) );
}
This method mixes up the order of the dependenies due to the use of the Map.
Issue Links
| This issue duplicates: | ||||
| MNG-1412 | dependency sorting in classpath |
|
|
|