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

后端 未结 5 1043
眼角桃花
眼角桃花 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 08:12

    While waiting for a fix for this problem, I'm using the following temporary workaround:

    We have the jaxb-plugin and generated classes in a separate maven module. In eclipse I can then "disable Maven nature" on that module only. Then I can use Indigo with m2eclipse on the rest of our large maven project and it will depend on the jar for the jaxb module (must be built from the command line). This works well for me since our project was allready organized this way.

提交回复
热议问题