Hybris addons install / uninstall / concept [closed]

戏子无情 提交于 2019-11-30 05:26:37

How is the best way to work with a default addon from hybris?

Addons are used to extend Hybris platform functionalities without changing its source code, they are standard extensions, So, I think that the best way is to create your own addon, so you keep your code independent of Hybris business logic and modular for future evolution. In general SAP Hybris recommends the extension of its code without modifying it.

What exactly happens by installing an addon on an extension?

Once you execute the following command :

ant addoninstall -Daddonnames="myAddOn" -DaddonStorefront.yacceleratorstorefront="myStorefront"

ant addoninstall will :

  • Add myAddOn into extensioninfo.xml as required for myStorefront extension
  • Add myAddOn to addons.less for myStorefront
  • Generate a new project.properties file from the project.properties.template inside myAddOn.
  • Configure the myAddOn web spring configuration myAddOn-web-spring.xml into myStorefront.additionalWebSpringConfigs

When need to uninstall an addon, does it need to use the uninstall command?

Yes, you need to execute ant addonuninstall in order to rollback the actions listed in the second response.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!