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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.6.1
    • None
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: