Hybris 项目工程配置.

1、控制台页面进入platform目录 cd F:\hybris640\hybris\bin\platform 并运行 setantenv.bat 生成对应的ant。

2、运行 ant modulegen 生成一整个模块,回车选择默认,输入extention名>>cui,输入包名org.cui ,生成成功,进入F:\hybris640\hybris\bin\custom 就可以看到生成的文件

3、运行 ant extgen 生成单个模块,选择模块 ycommercewebservices 输入extention 名 cuiwebservices,输入包名 org.cui.webservices

4、把hybris项目导入IDEA

  • 安装IDEA的hybris插件

  • 导入工程项目

        

选择后找到Hybris解压的根目录,导入工程。

 

  • IDEA导入Hybris Extention

选中Modules,并导入${HYBRIS_HOME}\bin\customer中的extension

 

5、打开custom ---->config—>localextensions.xml 增加我们自己的模块

<hybrisconfig xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='../bin/platform/resources/schemas/extensions.xsd'>
  <extensions>
  <path dir='${HYBRIS_BIN_DIR}' autoload='false' />
    <extension name='mcc' />
   <!-- <extension name='backoffice' />-->
    <extension name='commercesearchbackoffice' />
    <extension name='commerceservicesbackoffice' />
   <!-- <extension name='solrfacetsearchbackoffice' />
    <extension name='solrserver' />
    <extension name='yacceleratorcockpits' />
    <extension name='yacceleratorinitialdata' />
    <extension name='yacceleratorstorefront' />
    <extension name='yaddon' />
    <extension name='ycommercewebservices' />
    <extension name='yacceleratorfulfilmentprocess' />
    <extension name='electronicsstore' />
    <extension name='addonsupport' />
    <extension name='liveeditaddon' />
    <extension name='acceleratorwebservicesaddon' />
    <extension name='customersupportbackoffice' />
    <extension name='customerticketingaddon' />
    <extension name='commerceorgsamplesaddon' />
    <extension name='chineseprofileaddon' />
    <extension name='chineselogisticaddon' />
    <extension name='chineselogisticbackoffice' />
    <extension name='chinesepaymentaddon' />
    <extension name='chinesetaxinvoiceaddon' />
    <extension name='chinesetaxinvoicebackoffice' />
    <extension name='chinesepspalipaymockaddon' />
    <extension name='chinesepspalipaysbackoffice' />
    <extension name='chinesestoreaddon' />
    <extension name='verticalnavigationaddon' />
    <extension name='rulebuilderbackoffice' />
    <extension name='couponbackoffice' />
    <extension name='droolsruleengineservices' />
    <extension name='couponfacades' />
    <extension name='promotionenginesamplesaddon' />
    <extension name='chineseaddressaddon' />
    <extension name='chineseaddressbackoffice' />
    <extension name='chinesepspwechatpaymentaddon' />
    <extension name='chinesepspwechatpaysbackoffice' />
    <extension name='consignmenttrackingaddon' />
    <extension name='consignmenttrackingmockaddon' />
    <extension name='consignmenttrackingbackoffice' />
    <extension name='notificationaddon' />
    <extension name='customerinterestsaddon' />
    <extension name='stocknotificationaddon' />
    <extension name='chineseproductsharingaddon' />-->
    <extension name="cuicockpits"/>
    <extension name="cuicore"/>
    <extension name="cuifacades"/>
    <extension name="cuifulfilmentprocess"/>
    <extension name="cuiinitialdata"/>
    <extension name="cuistorefront"/>
    <extension name="cuitest"/>
    <extension name="cuiwebservices"/>
    <extension name='oauth2' />
  </extensions>
</hybrisconfig>

6、启动服务 ant clean all && Hybrisserver.bat debug

posted @ 2017-07-28 14:31  JMCui  阅读(1337)  评论(0编辑  收藏  举报