Maven clover2:setup triggers duplicate class exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 3.3.1, 4.0.0
    • Affects Version/s: None
    • Component/s: Maven plugin
    • None

      We have several maven projects that have more than one source directory. The non-default directories are added using the build-helper plugin. The clover2:setup goal instruments all source folders, but then sets all non-generated directories as source folders on the maven project. That results in compile errors, since source files are both present in the clover instrumented sources and original location.

      Example:
      java/src << 1. default source folder
      java/src-build << 2. additional source folder
      target/generate-sources/jaxb << 3. generated source folder

      Case (2) is causing problems.

            Assignee:
            Marek Parfianowicz
            Reporter:
            Benjamin Busjaeger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: