History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16077
Type: New Feature New Feature
Status: Open Open
Assignee: Anton Makeev
Reporter: Ben Gidley
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Maven embedder runs in the 'wrong' JDK

Created: 29 Oct 07 15:40   Updated: 31 Oct 07 16:29
Component/s: Maven Integration

Build: 7,364


 Description  « Hide
We have a project that uses Java 1.5 and JAXB 2.1 when build on the command line with JAVA_HOME set to point to a 1.5 JDK it compiles.

It is set to have 1.5 compatability level and IntelliJ is using this for compiles.

When 'make' is run in IntelliJ it compiles

However when maven install is run via the plugin it doesn't compile as it picks up JAXB 2.0 from the Java 1.6 classpath.

Can you make maven embedder honour either JAVA_HOME or the project JDK settings?



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 29 Oct 07 16:33
As workaround you can copy JAXB2.1 jars to JDK6's jre\lib\endorsed directory

Anton Makeev - 31 Oct 07 15:52
Have you tried to run goals with external maven? (you can find this option in Maven Settings->Build dialog).

Ben Gidley - 31 Oct 07 16:29
I have tried this and get a different error - this time it complains.
Embedded error: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Documents%20and%20Settings/bgidley/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1.3.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
[INFO] ------------------------------------------------------------------------