首页 > 解决方案 > 在 Hybris 中 ant clean all 后,未生成 items.xml 中定义的 itemtype 的相应模型

问题描述

我在 items.xml 中定义了一个新的 Itemtype,我期待它有一个相应的模型,但是在执行 ant clean all 之后我没有看到生成的模型

这是定义的项目类型。

    <itemtype code="ABCComponent" autocreate="true"
    generate="true" extends="SimpleCMSComponent"
    jaloclass="de.hybris.platform.bobs.jalo.cms.components.ABCComponent">
    <description>Its my first custom component</description>
    <attributes>

        <attribute type="java.lang.String"
            qualifier="valueDescriptionTittle">
            <description>Tittle to display for the component</description>
            <modifiers read="true" write="true" search="true"
                optional="true" />
            <persistence type="property"></persistence>
        </attribute>

        <attribute type="Media"
            qualifier="valuePropositionImgDesktop">
            <description>The image which can be attached for desktop view to this value proposition component.</description>
            <modifiers read="true" write="true" search="true"
                optional="true" />
            <persistence type="property" />
        </attribute>

    </attributes>

谁能告诉我,哪里出错了。

标签: javahybris

解决方案


try (for items you need initialize):

ant clean all initialize

推荐阅读