Leon Chadwick created MECLIPSE-711:
--------------------------------------

             Summary: .classpath generated does not consider inter-dependency 
order and is generally alphabetically ordered
                 Key: MECLIPSE-711
                 URL: https://jira.codehaus.org/browse/MECLIPSE-711
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : Dependencies resolution and build path (.classpath)
    Affects Versions: 2.8
         Environment: mvn 3.0.3, windows xp
            Reporter: Leon Chadwick
            Priority: Blocker


Looking at EclipseClasspathWriter.java, it generally relies on 
config.getDepsOrdered() to return the classpath entries in the correct order.
The Comparator for that ordering is alphabetical.

This means if I have modules that must come earlier in the list of classpath 
entries (lets say because we are overriding a classname from another module) 
then it is just a matter of luck whether this will build based upon the 
alphabetical order of these two modules.   The order should instead consider 
that if a module has a depdendency on another module it should come first in 
the classpath.

I see that IdeDepdendency class is passed a dependencyDepth in constructor but 
this is not used, perhaps that should be part of the comparator in 
getDepsOrdered() ?

I marked this as a blocker, as if you have a project that needs to build, with 
this issue it won't, and I can't.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to