Hybris new extension

extension templates

   yempty                          Skeleton for an extension with a core and web module

ycommercewebservices

Provides a working example how a REST API can be exposed dependent on the hybris commercefacades

ycockpit

Sample cockpit application

ybackoffice

Template to generate a backoffice extension to start developing widgets

yaddon

Base template for writing Accelerator AddOns.

  1. Open the Ant view in Eclipse and invoke the platform's task extgen. This will ask you to
    1. Select yempty for the extension template
    2. Enter the name cuppytrail for the extension.
    3. Enter the package prefix de.hybris.platform.cuppytrail
  2. The Ant script will now create a skeleton extension for you in YOURPATH/bin/custom/cuppytrail but this is not yet imported into Eclipse.
  3. Append the new extension to config/localextensions.xml:

<extension name="cuppytrail" />

  1. Stop the application server.
  2. Run ant all
  3. Start the application server
  4. Import the generated extension into your Eclipse environment
    1. Right-click in package explorer and select Import
    2. Select General|Existing Projects into Workspace and browse to the new extension YOURPATH/bin/custom/cuppytrail
    3. Make sure that the Copy projects into workspace check box is not checked before clicking on the Finish button
    4. You should now see the extension in your Eclipse Package Explorer
  5. Open the hybris administration console http://localhost:9001/platform/extensions in a web browser and log in as admin nimda. You will get an overview on the available extensions and, if the extension comes with a core extension module, an hmc extension module, a webmodule depicted by the webroot and a core + extension module. As you can see, cuppytrail contains a core module and a web module.
Because we do not need a web module for this basic extension, we will disable this in  cuppytrail/extensioninfo.xml

 <!-- 
      <webmodule jspcompile="false"
                    webroot="/cuppytrail"
                    />
      -->
<span style="font-size: 13.3333px; line-height: 17.316px; font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">Run </span><span style="font-size: 13.3333px; line-height: 17.316px; font-family: Arial, Helvetica, sans-serif;  background-color: rgb(255, 255, 255);"><strong>ant all</strong></span><span style="font-size: 13.3333px; line-height: 17.316px; font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"> (check that the hybrisserver is restarted afterwards) and verify that there's no accessible webroot for cuppytrail</span>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值