Hi,
we use
<plugin>
<!-- http://mojo.codehaus.org/jaxb2-maven-plugin/xjc-mojo.html -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>jaxb2-maven-plugin-run</id>
<phase>generate-sources</phase>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<packageName>....</packageName>
</configuration>
</execution>
</executions>
</plugin>
thomas
Am 09.07.2010 08:35, schrieb zhaoyi:
Below is our configuration. The -no-header doesn't solve the problem.
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.7.1</version>
<executions>
<execution>
<id>generate-jaxb</id>
<phase>generate-test-sources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>com.example.ipo.jaxb</generatePackage>
<generateDirectory>${project.build.directory}/jaxb-source</generateDirectory>
<schemaDirectory>${basedir}/src/test/resources</schemaDirectory>
<schemaIncludes>
<include>ipo.xsd</include>
</schemaIncludes>
<arguments>-no-header</arguments>
</configuration>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]