Saturday 28 January 2017

Installing SAP Hybris commerce on your local system

Step 1 : Download the latest hybris commerce suite using the below link,                                        
              https://wiki.hybris.com/display/downloads/Download

Step 2 : Create a directory and unzip your hybris commerce suite directly. (as the zip file already contains a hybris directory).

While creating the directory we need to follow few rules,
  • Don’t use directory paths containing spaces.  Building SAP hybris commerce fails if you use spaces.
  • The directory must be close to system root directory and should not exceed more than 255 characters.

For example you can place it inside C:\ hybris

Step 3 : Unzip the suite in to the created directory . After completing the extraction, the choosen directory structure should look as shown below,



Step 4 : Open command prompt and navigate to <${HYBRIS_BIN_DIR}>  ( i.,e Your hybris installation folder > Hybris > bin)  directory and navigate to platform directory. 

For example,  C:\hybris\bin\platform.

  • On Microsoft Windows systems, run the setantenv.bat file by entering setantenv.bat.
  • On Unix-based systems (like Mac OS X or Linux), run setantenv.sh by entering . ./setantenv.sh

Step 5 :  Now perform ant clean all. This prompts you to select a configuration template for our operation environment as shown below,



Buildfile: C:\hybris\bin\platform\build.xml
     [echo]
    [mkdir] Created dir: C:\hybris\log
    [mkdir] Created dir: C:\hybris\data
    [mkdir] Created dir: C:\hybris\temp\hybris
    [input]
    [input]  **** NO CONFIG FOLDER FOUND **** use the jar utility to
             unzip the zip file on unix based systems, as this will change the 
             timestamps of the contained files and break the build process.
Buildfile: C:\hybris\bin\platform\build.xml
     [echo]
    [mkdir] Created dir: C:\hybris\log
    [mkdir] Created dir: C:\hybris\data
    [mkdir] Created dir: C:\hybris\temp\hybris
    [input]
    [input]
    [input]  No config folder was found at C:\hybris-4.5\hybris\config.
    [input]  A "fresh" folder containing basic configuration files 
             and the hybris
    [input]  demo licence will be created for your convenience.
    [input]  Please adjust and review the configuration files (and license) and
    [input]  call 'ant' again. This directory will never be overridden or
    [input]  touched again. Always use this configuration folder 
             for configuration
    [input]  of platform, do not change anything within the platform folder.
    [input]
    [input]  Please choose the configuration template.
    [input]  Press [Enter]
    [input to use the default value ([develop], production)

We should select the default value develop, by pressing enter.

§       This will generate folders like config, data, log and data and places them in hybris bin directory.

server:
     [echo]
     [echo] Configuring server at C:\hybris\bin\platform/tomcat-6
     [echo] Using config set at C:\hybris\config/tomcat
     [echo]
    [mkdir] Created dir: C:\hybris\log\tomcat
    [mkdir] Created dir: C:\hybris\data\media
     [copy] Copying 8 files to C:\hybris\bin\platform\tomcat-6
     [copy] Copying 6 files to C:\hybris\bin\platform\tomcat-6
     [copy] Copying 1 file to C:\hybris\bin\platform\tomcat-6\lib
     [echo]
     [echo] Embedded server does not seem to be running (no PID found). 
            No restart necessary.
     [echo]
 
all:
     [echo] Build finished on 26-March-2013 11:23:33.
     [echo]
 
BUILD SUCCESSFUL
Total time: 3 minutes 15 seconds
C:\hybris\bin\platform>

§       After  the build is successful the hybris folder structure should look like this,


Note : All the configuration files of SAP hybris commerce are placed inside config directory.

Step 6 : Configure all the required extensions. Navigate to Your hybris installation directory > hybris > config and open localextensions.xml and make the following configuration,


    <hybrisconfigxmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'        xsi:noNamespaceSchemaLocation='../bin/platform/resources/schemas/extensions.xsd'>
 
   <extensions>
    <path dir='${HYBRIS_BIN_DIR}' autoload='false' />
    <extension name='ordermanagementaddon' />
    <extension name='orderselfserviceaddon' />
    <extension name='ordermanagementfacade' />
    <extension name='ordermanagementwebservices' />
    <extension name='warehousing' />
    <extension name='warehousingbackoffice' />
    <extension name='warehousingfacade' />
    <extension name='warehousingwebservices' />
    <extension name='instore' />
    <extension name='mcc' />
    <extension name='backoffice' />
    <extension name='commercesearchbackoffice' />
    <extension name='commerceservicesbackoffice' />
    <extension name='solrfacetsearchbackoffice' />
    <extension name='solrserver' />
    <extension name='yacceleratorcockpits' />
    <extension name='yacceleratorinitialdata' />
    <extension name='yacceleratorordermanagement' />
    <extension name='yacceleratorstorefront' />
    <extension name='yaddon' />
    <extension name='ycommercewebservices' />
    <extension name='electronicsstore' />
    <extension name='apparelstore' />
    <extension name='acceleratorwebservicesaddon' />
    <extension name='customersupportbackoffice' />
    <extension name='customerticketingaddon' />
    <extension name='ticketsystembackoffice' />
    <extension name='rulebuilderbackoffice' />
    <extension name='couponbackoffice' />
    <extension name='droolsruleengineservices' />
    <extension name='couponfacades' />
    <extension name='promotionenginesamplesaddon' />
<extension name='ordermanagementtestaddon'/>
<extension name='hmc' />
   </extensions>

  </hybrisconfig>
  
    Now perform ant clean all again and make sure the build is success.


No comments:

Post a Comment