Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5736

ProjectSorter invalid duplication checking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.2.3
    • None
    • Bootstrap & Build
    • None
    • n/a
    • Patch

    Description

      One pom has two modules, both modules link to the same third module.

      ProjectSorter detects this as a DuplicateProjectException, but in fact if you check getFile() for both projects they are in fact the exact same underlying pom.xml.

      So I've provided a patch to ProjectSorter which check and skips the conflicting project, prior to throwing DuplicateProjectException.

      Not sure if I should be fixing ProjectSorter or if the bug needs to be fixed earlier...

      Testcase, execute the parent pom, with maven-core and it fails, then build maven-core with the supplied patch and rebuild the parent pom.

      Attachments

        1. build.log
          4 kB
          John Patrick
        2. build-patched.log
          43 kB
          John Patrick
        3. exact-same-module.zip
          3 kB
          John Patrick
        4. maven-core.patch.ProjectSorter.patch
          1.0 kB
          John Patrick

        Activity

          People

            Unassigned Unassigned
            nhoj.patrick John Patrick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: