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

When a ../ relative path is used for the sourceDirectory it is added twice resulting in the compiler reporting duplicate classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.6.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux

      Description

      When using a relative path to pull in source from another module the source root is added twice in this situation. This doesn't happen with 3.6.0

      <sourceDirectory>../another-module/src/main/java</sourceDirectory>

      With -X you see

      Source roots:

      base-directory/this-module/../another-module/src/main/java

      and

      base-directory/another-module/src/main/java

      making every class appear twice.

       

      Workaround: use 3.5.x or 3.6.0

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                peter..lawrey Peter Lawrey
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: