This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Abbreviated usage samples: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <executions> <execution> <id>generate-sources-wsdl</id> <phase>generate-sources</phase> <configuration> <testSourceRoot>${basedir}/target/generated/src/test/java</testSourceRoot> </configuration> </execution> </executions> </plugin> The IDE does not recognize the generated source roots, and so produces error badges.
well, we probably should file an issue for cxf to make the sourceRoot parameter contain a default value target/generated/cxf (as some examples on their website use) and remove the setting of generated source root from the website. I wanted to do it right away, but got stuck at resetting jira password.
target/generated-sources/cxf is what we want I guess. In fact this is the default value in trunk WSDL2JavaMojo: /** * Path where the generated sources should be placed * * @parameter expression="${cxf.sourceRoot}" * default-value="${project.build.directory}/generated-sources/cxf" * @required */ File sourceRoot; (testSourceRoot has no default, oddly.) There are two archetypes in CXF sources, but they do not seem to use this plugin. Their own sources (e.g. api/pom.xml) do use the nonstandard <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> for cxf-xjc-plugin#xsdtojava; I am not entirely sure where this mojo is defined. I submitted a comment to their wiki [1] which I hope will show up on the static site [2] soon too. I have a login to submit an issue to JIRA [3] if there is something else that needs to be changed. [1] https://cwiki.apache.org/confluence/display/CXF20DOC/Maven+cxf-codegen-plugin+%28WSDL+to+Java%29 [2] http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html [3] https://issues.apache.org/jira/browse/CXF
your comment is not visible on the documentation page, only on the confluence page. I think we should file an issue at cfx and close our issue as wontfix. I wanted to do that myself, but forgot my apache jira password and the recovery email got stuck somewhere..
https://issues.apache.org/jira/browse/CXF-4260
Plugin docs updated.