I am very new to Maven, and I am facing the situation that I need to execute plugin specified in pom.xml which generates java classes from xsd. This plugin is specified in build section so I need to compile all the code before it is triggered. Is there some way how to trigger the plugin with all its configuration specified in pom.xml directly?
I have searched online and the suggested way was to call
mvn org.apache.cxf:cxf-xjc-plugin:2.6.1:xsdtojava
(this is my plugin), but I am getting error Must specify xsdOptions, so from my understanding it is just calling the plugin without he config specified in pom.xml.
If someone could help me, it would be great. I can not edit the pom.xml!