Re: Force Maven to use my newer version of Jaxb instead of the one from Java 6?

2010-04-26 Thread Wayne Fay
> How can force Maven to use my newer version of Jaxb instead of the one from
> Java 6?

This is not a Maven problem per-se. You can find ways to deal with this here:
https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html

The easiest approach is using the endorsed directory mechanism but
realize this means you need to deploy jars to all JDKs/JREs in your
environments.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Force Maven to use my newer version of Jaxb instead of the one from Java 6?

2010-04-26 Thread VanIngen, Erik (FIPS)
Hi there,

I have this problem during mvn install of my application:
Caused by: javax.xml.bind.JAXBException:
"org.fao.fi.fisheryresources.domain" doesnt contain ObjectFactory.class or
jaxb.index
which is probably a classpath problem. Java 6 has an older version of Jaxb
than I need. The newer version is specified in the pom.xml but Maven on Linux
takes the version of Java 6. 

How can force Maven to use my newer version of Jaxb instead of the one from
Java 6?

Thanks for helping me out,
Erik