gpt4 book ai didi

ant - ANT 脚本中的 XJC 任务显示为 "Use Class Customization"

转载 作者:行者123 更新时间:2023-12-04 14:07:22 25 4
gpt4 key购买 nike

在 SNotification.xsd 上运行 XJC 任务时,两个 XSD(SNotification.xsd、CDataModel.xsd)生成相同的类。它显示的错误是:

A class/interface with the same name "com.att.mre.ecrupr.atlas.jms.MarketInfo" is already in use. Use a class customization to resolve this conflict.
[xjc] line 214 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Atlas/Container/Public/SubscriberNotification.xsd
[xjc] [ERROR] (Relevant to above error) another "MarketInfo" is generated from here.
[xjc] line 22368 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Common/Types/Public/CingularDataModel.xsd
[xjc] [ERROR] Two declarations cause a collision in the ObjectFactory class.
[xjc] line 22368 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Common/Types/Public/CingularDataModel.xsd
[xjc] [ERROR] (Related to above error) This is the other declaration.
[xjc] line 214 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Atlas/Container/Public/SubscriberNotification.xsd
[xjc] failure in the XJC task. Use the Ant -verbose switch for more details

最佳答案

我遇到了同样的问题并从终端运行以下命令并解决了

xjc -XautoNameResolution your.xsd 

关于ant - ANT 脚本中的 XJC 任务显示为 "Use Class Customization",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15157744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com