[ 
https://issues.apache.org/jira/browse/MNG-7793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17938468#comment-17938468
 ] 

Guillaume Nodet edited comment on MNG-7793 at 3/26/25 6:47 AM:
---------------------------------------------------------------


I don't see the point of maintaining yet another list of sources.
I think we should focus on the Maven 4 API and it should be an additional 
attribute on `org.apache.maven.api.model.Source` instead.


was (Author: gnt):
I think this should be an additional attribute on 
`org.apache.maven.api.model.Source` instead.

> Add APIs for generated sources
> ------------------------------
>
>                 Key: MNG-7793
>                 URL: https://issues.apache.org/jira/browse/MNG-7793
>             Project: Maven
>          Issue Type: New Feature
>          Components: API, Core
>            Reporter: Zhenlei Huang
>            Priority: Minor
>
> 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)

Reply via email to