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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.2
    • 3.2
    • None
    • Java 6
    • 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

              jdcasey John Dennis Casey
              zregvart@gmail.com Zoran Regvart
              Votes:
              7 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: