You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/08/08 17:02:00 UTC

[jira] [Commented] (MNG-6730) When a ../ relative path is used for the sourceDirectory it is added twice resulting in the compiler reporting duplicate classes

    [ https://issues.apache.org/jira/browse/MNG-6730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16903145#comment-16903145 ] 

Robert Scholte commented on MNG-6730:
-------------------------------------

Looks like a duplicate of MNG-6716. There is [a PR|https://github.com/apache/maven/pull/274] available, but the reporter is enjoying vacation. We're looking for someone who can confirm the fix.

> When a ../ relative path is used for the sourceDirectory it is added twice resulting in the compiler reporting duplicate classes
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-6730
>                 URL: https://issues.apache.org/jira/browse/MNG-6730
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: Linux
>            Reporter: Peter Lawrey
>            Priority: Minor
>
> 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
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)