I am developing a web service contract-first. I have seen a lot of developers use the plugin jaxws-maven-plugin
in the pom.xml to create java classes from the wsdl file (or the xsd file), while other developers use some pluggin variation of jaxb2-maven-plugin
to do it.
Does someone know advantage of using one or the other?. Is any of them obsolete?
jaxb2 - maven - plugin is a maven plugin that replaces XJC and schemagen to complete the transformation of Java classes and schema files. When using jaxb2: schemagen generates a schema file, it cannot be generated if the Java bean property name is different from the specified name
Jaxws-maven-plugin generates the Web Service client Java code.
Most of the time Jaxws-maven -plugin is more recommended for use
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.