maven本地构建时报错

g.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/D:/CIE/apache-maven-3.0.4/repo/com/sun/xml/bind/jaxb-impl/2.2.4/jaxb-impl-2.2.4.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.2 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards/)
这个是jdk的版本过低的问题,我的jdk为1.6_02在本地构建的时候,一直报这个错,换为jdk1.6_25之后就好了,jaxb

需要高版本的jdk支持,低版本不支持。

猜你喜欢

转载自08284008.iteye.com/blog/1552899