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 Bug
    • Status: Closed
    • Priority: Major 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

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

        Issue Links

          Activity

          Zoran Regvart created issue -
          Jérôme Verstrynge made changes -
          Field Original Value New Value
          Attachment TestCase2.zip [ 56295 ]
          Gleb Frank made changes -
          Attachment maven-compiler-plugin-addToSourcePathAsWell.patch [ 59008 ]
          Jesse Glick made changes -
          Link This issue is duplicated by MCOMPILER-159 [ MCOMPILER-159 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Fix Version/s 2.5 [ 18466 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Fix Version/s 2.5 [ 18466 ]
          Fix Version/s 2.6 [ 18537 ]
          Zoran Regvart made changes -
          Attachment failing-test-example.zip [ 61962 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Fix Version/s 3.1 [ 18973 ]
          Fix Version/s 3.0 [ 18537 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Fix Version/s 3.2 [ 19091 ]
          Fix Version/s 3.1 [ 18973 ]
          John Casey made changes -
          Assignee John Casey [ jdcasey ]
          John Casey made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Arnaud HERITIER made changes -
          Link This issue relates to MCOMPILER-235 [ MCOMPILER-235 ]
          Federico Gaule made changes -
          Link This issue relates to MCOMPILER-236 [ MCOMPILER-236 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:20:51 UTC 2015 [ 1428225651644 ]
          Mark Thomas made changes -
          Workflow jira [ 12718666 ] Default workflow, editable Closed status [ 12750006 ]
          Mark Thomas made changes -
          Flags Patch [ 10430 ]
          Patch Submitted Yes [ 10763 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:48:53 UTC 2015 [ 1428274133206 ]
          Mark Thomas made changes -
          Workflow jira [ 12956059 ] Default workflow, editable Closed status [ 12993113 ]

            People

            • Assignee:
              John Casey
              Reporter:
              Zoran Regvart
            • Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development