maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary McWilliams (JIRA)" <>
Subject [jira] [Created] (MNG-6658) Maven 3.6.1 breaks build when using custom source folder
Date Tue, 21 May 2019 09:48:00 GMT
Gary McWilliams created MNG-6658:

             Summary: Maven 3.6.1 breaks build when using custom source folder
                 Key: MNG-6658
             Project: Maven
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.1
            Reporter: Gary McWilliams

NOTE: apacher 3.5.x and 3.6.0 don't exhibit this behaviour, only 3.6.1

For reasons too long (and painful) to discuss, I have a need to build 2 war files from one

What I have:


  src/com/.../*.java  pom.xml

  module1/    pom.xml  module2/    pom.xml

The parent folder (pom.xml with packaging 'pom') contains all the source and defines the 2

The parent pom.xml has:

{{    <build>}}
{{        <sourceDirectory>../src/main/java</sourceDirectory>}}
{{        <testSourceDirectory>../src/test/java</testSourceDirectory>}}


When the 2 modules run, they find the source/test code in the parent folder and compile/build
out the class/war locally in target folder.

Until 3.6.1, now I get:

{{[INFO] -------------------------------------------------------------}}
{{[ERROR] /D:/.../src/main/java/com/.../[36,8] duplicate class: com....Class}}

where the "duplcate" classname is "the same class", so ClassA complains about duplicate ClassA

Just looking advice. I know I should not be trying to build 2 artifacts in one project, but
it's been working until now



This message was sent by Atlassian JIRA

View raw message