<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.8.1</version> <executions> <execution> <id>jaxb-generate</id> <goals> <goal>generate</goal> </goals> <configuration> <!-- using xmlElementWrapper feature not to generate wrapper class --> <args> <arg>-Xannotate</arg> <arg>-no-header</arg> <arg>-Xxew</arg> <arg>-Xxew:instantiate lazy</arg> </args> .... <plugins> <plugin> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics-annotate</artifactId> <version>0.6.3</version> </plugin> <plugin> <groupId>com.github.jaxb-xew-plugin</groupId> <artifactId>jaxb-xew-plugin</artifactId> <version>1.1</version> </plugin> </plugins> </configuration> </execution> </executions> </plugin>
Jaxb2 plugin to avoid xmlelementwrapper
猜你喜欢
转载自asianboycn.iteye.com/blog/2115658
今日推荐
周排行