Estos son mis principios. Si a usted no le gustan, tengo otros

Maven. Integración básica de XMLBeans

Posted: November 15th, 2009 | Author: Edu | Filed under: Java, Maven, XML Schema | Tags: , , | No Comments »
VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)

Ruta dónde almacenar los ficheros .xsd:

src/main/xsd

Extracto del fichero pom.xml:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>xmlbeans-maven-plugin</artifactId>
	<version>2.3.2</version>
	<executions>
		<execution>
			<id />
			<phase>generate-sources</phase>
			<goals>
				<goal>xmlbeans</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<verbose>true</verbose>
		<quiet>false</quiet>
		<outputJar>target/schema.jar</outputJar>
		<javaSource>1.5</javaSource>
	</configuration>
</plugin>

Ruta de generación de ficheros .java:

target/generated-sources

Ruta de generación de ficheros .class:

target/generated-classes

JAR generado:

target/schema.jar

VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)


Leave a Reply

  • Powered by WP Hashcash