wsimport出现命名冲突时的解决办法

有没有遇到过这种问题:

"[ERROR] A class/interface with the same name "mypackage.SomeClass" is already in use. Use a class customization to resolve this conflict. "

StackOverflow上有人给出了解决办法?

"The solution is to run wsimport with the
-B-XautoNameResolution (no spaces)"

注意比较新的JDK版本才支持 -B 参数。

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.