What is recipe in SAP Hybris?

佐手、 提交于 2020-03-21 03:10:48

问题


When we install recipe it generates only storefront extension, not others what is the reason for that? Can we create a custom extension using ant modulegen as well?


回答1:


If you understand the difference between modulegen & Recipes, things will become more clear to you.

Modulegen

The modulegen tool is delivered with SAP Commerce and can be used to generate sets of dependent extensions to quickly start new projects or create new applications. The modules shipped with SAP Commerce help you to meet client requirements from the very beginning by allowing you to generate fully functional applications that can then be customized. The modulegen tool replaces the schema, package name, extension class prefixes, and some other properties across a set of extensions, all while maintaining the relationships between them. The tool is run as an ant task, so it requires the ant libraries to be present on the system.

Source: help.hybris

Recipes

To automate your installation of SAP Commerce for development and demonstration purposes, you can use an installer recipe. Recipes are gradle scripts that take care of creating directories, moving files, updating configuration and properties files, and initializing the system.

Source: help.hybris


To answer your questions

When we install recipe it generates only storefront extension, not others what is the reason for that?

Basically, recipe adds a flavor to your project. Let suppose you want to explore the B2C SAP Hybris Commerce, then you just need to install b2c_acc. It will create localextensions.xml under your config folder with the all required extensions for B2C. The recipe doesn't generate custom extensions. You have to run the modulegen for that.

Can we create custom extensions using ant modulegen as well?

Yes, Intended for that purpose only.




回答2:


Have a look here:

Is Hybris installer used for demonstration purposes only?

I think it is about the same issue



来源:https://stackoverflow.com/questions/54879879/what-is-recipe-in-sap-hybris

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