Aleksei Valikov wrote:
> Hi.
>
> I am using the jaxb-maven2-plugin to generate my classes and all works
> fine with java1.5, but when i try to use java 6 it show the following
> exception with the -e switch:
>
>
> To be honest, I have not tried Java 6 yet. I'll try it out and report
> back.
>
> Please post your pom.xml (at least the <build/> part).
>
> Bye.
> /lexi
here is the build part of my pom.xml
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>src/xsd/qui/maindoc</schemaDirectory>
<schemaIncludes>
<schemaIclude>1.xsd</schemaIclude>
</schemaIncludes>
<bindingDirectory>src/xsd</bindingDirectory>
<bindingIncludes>
<bindingInclude>binding.xjb</bindingInclude>
</bindingIncludes>
<generateDirectory>${project.build.directory}/generated-sources</generateDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
Regards,
hunor