Dependecy order is lost ------------------------ Key: MNG-2541 URL: http://jira.codehaus.org/browse/MNG-2541 Project: Maven 2 Issue Type: Bug Components: Dependencies Affects Versions: 2.0.4 Reporter: Gareth Tilley Priority: Minor
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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira