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

Thomas Schapitz commented on NETBEANS-6163:
-------------------------------------------

This is rather a problem of certain improper coded plugins, then one of maven 
or netbeans.

By convention, a single plugin execution should place the package root of 
genereated source just one level below of 
target/generated-sources/<outputpackageroot-of-some-plugin-execution>, where 
this usually indicates the plugins name, e. g. 'jaxb'. The plugin will put this 
directory also into the source path, and netbeans will pick it up from there 
too.  In some cases though, noncompliant plugins allow to configure the output 
path. In others, usage of the build-helper-plugin is necessary.

 

In any case, netbeans shouldn't try to second guess the maven project 
configuration, but rather tap into the maven model intercepting the source 
roots during a 'priming build'.

> Maven does not set generated source roots correctly
> ---------------------------------------------------
>
>                 Key: NETBEANS-6163
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6163
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>            Reporter: Martin Entlicher
>            Assignee: Martin Entlicher
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: Next
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Clone and build [https://github.com/dsyer/native-image-debug]
> Open the project in NetBeans and see that under {{Generated Sources}} there 
> are packages like: {{src.main.java.org.springframework.aot}}, etc.
> The initial {{src/main/java}} should not be included in the source root.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to