Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1722

Detect a cycle in Maven project and report it

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      I have the following maven2 project hierarchy:

      -> A <-
       
       

      B <------ C

      So there is no circular dependency. This works nicely unless, C is a module of
      A, i.e.:
      a/pom.xml
      a/c/pom.xml
      b/pom.xml

      and A lists C as module.

      In Hudson, project A has B listed as both upstream and downstrean dependency,
      which results in an infinite build loop. However, I think this is a legal setup
      in Maven2, as there is no circular dependency. I haven't investigated this
      thoroughly, but it might be that modules are considered downstream projects even
      they aren't.

      I'll attach a test project demonstrating the bug. Just adding A and B to Hudson
      should cause the loop. If not, committing something should do it.

            Unassigned Unassigned
            syvalta syvalta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: