Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-157

Maven Compiler Plugin should add to compileSourceRoots for next plugins to consider as source directory for generated files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 3.2
    • Labels:
      None
    • Environment:
      Java 6
    • Flags:
      Patch

      Description

      Maven Compiler Plugin by relying on javac by default, on Java 6 platform includes annotation processors in it's processing, these in end could generate sources that are placed by default in target/generated-sources/annotations. The later should be added to compileSourceRoots so that next plugin in execution would consider those sources.

      Please, see the attached test case and consider the attached patch in the next release of maven-compiler-plugin.

      thanks,

      Zoran

        Attachments

        1. TestCase2.zip
          8 kB
          Jérôme Verstrynge
        2. test-case.zip
          8 kB
          Zoran Regvart
        3. maven-compiler-plugin-addToSourcePathAsWell.patch
          2 kB
          Gleb Frank
        4. maven-compiler-plugin-add-compileSourceRoots.patch
          2 kB
          Zoran Regvart
        5. failing-test-example.zip
          10 kB
          Zoran Regvart

          Issue Links

            Activity

              People

              • Assignee:
                jdcasey John Casey
                Reporter:
                zregvart@gmail.com Zoran Regvart
              • Votes:
                7 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: