How does one get JAXB-generated sources onto the Eclipse build path under m2e/Indigo?

后端 未结 5 1042
眼角桃花
眼角桃花 2020-12-24 07:45

Under Helios/m2eclipse, when I generated jaxb sources they would be put on the Eclipse source path when I did an \"Update Project Configuration\".

This doesn\'t ha

5条回答
  •  旧时难觅i
    2020-12-24 07:54

    For those who are suffering with maven-jaxb2-plugin and Eclipse not having source attached. The author has switched from the Sun to the Glassfish JAXB artifacts and the dependency tree has changed. Previously many JARs where shaded into jaxb-xjc without transitive ones. Now, this has been removed and the previous transitive dependency to tools.jar breaks Eclipse execution. Start your Eclipse with a JDK VM and it will work. (Tested most recent Maven 3.3.9, Maven JAXB2 Plugin 0.13.1, recent m2e JAXB2 connector and Eclipse Mars.2)

提交回复
热议问题