Thursday 6 December 2018

Modulegen in hybris

*  ant modulegen command used to generate sets of dependent extensions to quickly start new projects or create new applications.
 *  The modulegen tool replaces the schema, package name, extension class prefixes, and some other properties across a set of extensions
 * 7 extensions generate for b2c & b2b accelerator.


Follow the below steps to generate a set of extensions,

Step 1:- Go to platform directory and run ‘ant modulegen’ command.

ant modulegen -Dinput.module=accelerator -Dinput.name=training -Dinput.package=de.hybris.training -Dinput.template=develop
· input.module parameter: Defines the accelerator module.
· input.name value: Prefix that is added to the new extensions generated by modulegen.
· input.package value: Defines the package prefix.
· input.template parameter: Defines how to use Hybris Commerce 
configuration.

Step 2:- A set of extensions will be generated and place that extensions in localextensions.xml file.




Step 3:- remove any of the following extensions that might appear in your localextensions.xml file
yacceleratorcore
yacceleratorfacades
yacceleratorstorefront
yacceleratorinitialdata
yacceleratortest
yacceleratorcockpits
yacceleratorfulfilmentproces

Step 4:- start the server


Step 5:- initialize the system from HAC.




Step 6:- you must have the following entry in your computer's hosts file:

127.0.0.1   electronics.local 






Step 7:- Access the site with below URl

https://electronics.local:9002/hybrisinstructivestorefront/


No comments:

Post a Comment