`

Jaxb2 plugin to avoid xmlelementwrapper

    博客分类:
  • JAXB
 
阅读更多
<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>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics