Skip to content

[MNG-7793] Add APIs for generated sources #9196

@jira-importer

Description

@jira-importer

Zhenlei Huang opened MNG-7793 and commented

Some source code analysis plugins such as Maven Checkstyle Plugin and Apache Maven PMD Plugin might want to exclude generated sources / test sources. Commonly the generators have their own styles and make the generated sources as robust as possible so users might not want to re-check them.

Typically the generated source directory is under ${project.build.directory}/generated-sources but it seems that is not enforced. It can be valuable to have generatedCompileSourceRoots and generatedTestCompileSourceRoots in maven-core and to be consumed by various plugins.

[1] https://issues.apache.org/jira/browse/MCHECKSTYLE-412
[2] https://maven.apache.org/plugins/maven-pmd-plugin/usage.html


Remote Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions