You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/06/11 07:39:00 UTC
[jira] [Closed] (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:all-tabpanel ]
Michael Osipov closed MNG-6730.
-------------------------------
Fix Version/s: (was: waiting-for-feedback)
Resolution: Duplicate
No reaction, assuming to be a dup.
> 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
(v8.3.4#803005)