Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

[MCOMPILER-157] Maven Compiler Plugin should add to compileSourceRoots for next plugins to consider as source directory for generated files  #25

@sos-jira-migration-bot

Description

@sos-jira-migration-bot

Zoran Regvart opened MCOMPILER-157 and commented

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


Affects: 2.3.2

Attachments:

Issue Links:

  • MCOMPILER-159 generatedSourcesDirectory should be included in list provided by org.apache.maven.project.MavenProject.getCompileClasspathElements()
    ("is duplicated by")

  • MCOMPILER-235 duplicate classes due to MCOMPILER-157 when compiler is called twice or more

  • MCOMPILER-236 Compilation error due to MCOMPILER-157 in deploy phase

Remote Links:

7 votes, 17 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions