Skip to Content
author's profile photo Former Member
Former Member

What are the steps to install addon for b2baccelerator?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 15, 2015 at 08:19 PM

    Hello Chirag,

    The following procedure describes how to install addon using addoninstall command for B2b or B2C accelerator:

    1 ) Open a command interpreter window in Microsoft Windows (or shell in the Unix family systems) and navigate to the hybris/bin/platform directory.

    2) Run the addoninstall command. The command has the following format: Format of the addoninstall command ant addoninstall -Daddonnames="AddOnName1,AddOnName2" -DaddonStorefront.="Storefront1,Storefront2"

    3) When addoninstall has finished running successfully, rebuild the hybris system by running ant clean all from the hybris/bin/platform directory.

    Before you run the addoninstall command, make sure the addonsupport extension is listed in localextensions.xml file, as follows:

    < extension name="addonsupport" / >

    Also, make sure that the AddOn and storefront extension that you want to install are listed in localextensions.xml file.

    If you have all your AddOns prepared as a single ZIP file.

    1) Unzip all the AddOns that you wish to install into a subfolder of the ${HYBRIS_BIN_DIR} folder. In the following example, the subfolder is called addoninstalldir.

    2) Add the following line to your localextensions.xml file:

    < path autoload="true" dir="${HYBRIS_BIN_DIR}/addoninstalldir"/ >

    Finally, make sure you have properly defined the file for each AddOn that you wish to install.

    Parameters of the addoninstall command:

    1) addonnames : This parameter is mandatory. If more than one AddOn name is specified, the names must be separated by commas. If you do not include the addonnames parameter when you run the addoninstall command, you are asked to provide it.

    2) addonStorefront.storefrontTemplateName : This parameter is used to indicate which storefronts you are installing the AddOn for. If more than one storefront is specified, the storefront names must be separated by commas. The storefrontTemplateName variable indicates the storefront template you wish to use for storefront generation. By default, the two possible values are yacceleratorstorefront and yb2bacceleratorstorefront.

    Example of the addoninstall command:

    ant addoninstall -Daddonnames="NewAddOn1,NewAddOn2" -DaddonStorefront.yacceleratorstorefront="B2CStorefront1,B2CStorefront2" -DaddonStorefront.yb2bacceleratorstorefront="B2BStorefront1,B2BStorefront2"

    When you run the addoninstall command, the file for the AddOn is generated automatically. This is done using the file.

    You can replace the default storefront properites by using the following parameter when you run the addoninstall command:


    For example, the default storefront properties for the B2C Accelerator appear in the file as follows: yacceleratorstorefront.additionalWebSpringConfigs.myaddon=classpath:/myaddon/web/spring/myaddon-web-spring.xml

    If you specify the storefront parameters as addonStorefront.yacceleratorstorefront=B2CStorefront1,B2CStorefront2, the default line above is replaced in the file with the following: B2CStorefront1.additionalWebSpringConfigs.myaddon=classpath:/myaddon/web/spring/myaddon-web-spring.xml B2CStorefront2.additionalWebSpringConfigs.myaddon=classpath:/myaddon/web/spring/myaddon-web-spring.xml

    Best Regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.