Maven Eclipse Plugin
  1. Maven Eclipse Plugin
  2. MECLIPSE-711

.classpath generated does not consider inter-dependency order and is generally alphabetically ordered

    Details

    • Number of attachments :
      0

      Description

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Leon Chadwick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: