0

The XmlBeans Eclipse plugin seems moribund, last released a long time ago.

Meanwhile, when you run XmlBeans on an XSD, what comes out is not just Java source code, but also binary classes. I can't figure out how to get Eclipse to include those classes in the classpath when running code that uses the resulting API, and the result is class not found errors.

of course, if I just put a jar containing the results into the classpath, that works, but that's not desirable, since the maven-eclipse-plugin likes to pull the xmlbean-bearing class into the workspace along with everything else.

Is there a recipe for configuring Eclipse (or XMLBeans) to get around this?

4

1 に答える 1

1

次のように、プレーンな .class ファイルを Eclipse クラスパスに含めることができます。

プロジェクトのプロパティ -> Java ビルド パス -> ライブラリ -> [クラス フォルダーを追加...]

残念ながら、私の知る限り、maven-eclipse-plugin はこのオプションの追加をサポートしておらず、.classpath ファイルを再生成すると変更が失われます。

この機能をプラグインに追加したい場合は、MECLIPSE-164が出発点として適しているようです。;-)

于 2010-10-14T14:26:02.960 に答える