Include JAXB using Maven

后端 未结 3 597
醉酒成梦
醉酒成梦 2020-12-30 06:08

Working on my 1.6.0_16 JDK, I generated my stub classes from a WSDL using Apache CXF 2.5.2, which uses the most recent jaxb-api 2.2. I know it\'s possible to have it use jax

3条回答
  •  感动是毒
    2020-12-30 06:30

    I just ran into this issue with jaxb also; goodness do I love Maven (not). Here's how I resolved the problem.

    Add the central repo

    
        central
        http://repo.maven.apache.org/maven2/
    
    

    Modify the version of the api and impl

    
        javax.xml.bind
        jaxb-api
        2.2.7-SNAPSHOT
    
    
        com.sun.xml.bind
        jaxb-impl
        2.2.5-b10
    
    

提交回复
热议问题