如何在Eclipse中启用JAXB Simplify插件

时间:2013-11-05 02:41:36

标签: eclipse plugins jaxb xjc jaxb2-simplify-plugin

在带有JAXB项目的Eclipse中,我尝试生成启用了Simplify插件的类。

Simplify plugin

我已将所需的注释放在XSD文件中:

<xs:choice maxOccurs="unbounded">           
        <xs:element maxOccurs="unbounded" ref="ns1:flow" minOccurs="0">
            <xs:annotation>
                <xs:appinfo>
                    <simplify:as-element-property/>
                </xs:appinfo>
            </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="unbounded" ref="ns1:state" minOccurs="0">
                        <xs:annotation>
                <xs:appinfo>
                    <simplify:as-element-property/>
                </xs:appinfo>
            </xs:annotation>
        </xs:element>
    </xs:choice> 

在生成期间添加-Xsimplify参数: provide the -Xsimplify argument

但是XJC编译器返回错误&#34;无法识别的参数-Xsimplify&#34;

我已经在网上搜索了2天,仍然找不到在Eclipse中启用JAXB2-Basic插件的指南。请帮助!!。

0 个答案:

没有答案