You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Zhenlei Huang (Jira)" <ji...@apache.org> on 2023/05/25 01:12:00 UTC

[jira] [Created] (MNG-7793) Add APIs for generated sources

Zhenlei Huang created MNG-7793:
----------------------------------

             Summary: Add APIs for generated sources
                 Key: MNG-7793
                 URL: https://issues.apache.org/jira/browse/MNG-7793
             Project: Maven
          Issue Type: New Feature
          Components: Core
            Reporter: Zhenlei Huang


Some source code analysis plugins such asĀ [Maven Checkstyle Plugin|https://maven.apache.org/plugins/maven-checkstyle-plugin/] and [Apache Maven PMD Plugin|https://maven.apache.org/plugins/maven-pmd-plugin/index.html] 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)