• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Low Low
    • 3.1.12
    • 3.1.7
    • Groovy, Maven plugin
    • None

        Form Name

          [CLOV-1274] test with gmaven

          Marek Parfianowicz added a comment - - edited

          test case: src/it/groovy

          • test gmaven with clover2:setup

          invoker.goals = clean verify verifier:verify -Pwith-clover-setup

          works OK; required a fixed for SourceUnit.getName()

          • test gmaven with clover2:instr

          invoker.goals = clean verify verifier:verify -Pwith-clover-instr

          DOES NOT WORK. Reason: GMaven adds both /target/generated-sources/groovy-stubs and /target/clover/generated-sources/groovy-stubs to the list of source roots; maven fails with:

          org.apache.maven.BuildFailureException: Compilation failure
          src\it\groovy\target\clover\generated-sources\groovy-stubs\main\com\atlassian\maven\plugins\Example.java:[10,7] error: duplicate class: com.atlassian.maven.plugins.Example
          

          so it's not Clover's fault.

          problem documented on https://confluence.atlassian.com/display/CLOVER/Compiling+Groovy+with+GMaven+plugin

          Marek Parfianowicz added a comment - - edited test case: src/it/groovy test gmaven with clover2:setup invoker.goals = clean verify verifier:verify -Pwith-clover-setup works OK; required a fixed for SourceUnit.getName() test gmaven with clover2:instr invoker.goals = clean verify verifier:verify -Pwith-clover-instr DOES NOT WORK. Reason: GMaven adds both /target/generated-sources/groovy-stubs and /target/clover/generated-sources/groovy-stubs to the list of source roots; maven fails with: org.apache.maven.BuildFailureException: Compilation failure src\it\groovy\target\clover\generated-sources\groovy-stubs\main\com\atlassian\maven\plugins\Example.java:[10,7] error: duplicate class: com.atlassian.maven.plugins.Example so it's not Clover's fault. problem documented on https://confluence.atlassian.com/display/CLOVER/Compiling+Groovy+with+GMaven+plugin

            mparfianowicz Marek Parfianowicz
            mparfianowicz Marek Parfianowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: