I have written a WSDL and I want to generate java classes.
I use the cxf-codegen-plugin for maven2, but I get the following validation error in Eclipse:
Plugin execution not covered by lifecycle configuration: org.apache.cxf:cxf-codegen-plugin:2.2.7:wsdl2java (execution: generate-sources, phase: generate-sources).
Can anybody help me to resolve this? Or propose another solution?
Change the plugin version to this especific. After, Run Maven Update Project, and finally Run Maven generate-sources
Best regards,
The error message sounds like it is coming from the maven eclipse integration (m2e). If the build works from the command line but not from within eclipse then maybe this article on the eclipse wiki can help you to configure eclipse.
This answer shows the solution for a similar problem with another maven plugin.
You can add this snippet to your pom.xml (from the link published by @Jörn Horstmann):
The more important lines are:
So, you have to ensure what version of CXF are you using... Hope this can help...