Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Installing and Running Cortex API Tutorials 1-4

Installing and Running Cortex API Tutorials 1-4

The following instructions describe how to install and run Cortex API tutorials 1-4. The installation instructions for tutorials 5 and 9 are described in their documents. The tutorial code is distributed with the Cortex API source code, see Release Structure and Source Code Organization for more information.

To install and run tutorials 1-4:

  1. In the Cortex API resource-configuration project that you generated in Generate Cortex Projects, add the tutorials' Bundle-Symbolic names to the commerce-api-resource-integrations\src\main\resources\OSGI-INF\blueprint\resource-configuration-blueprint.xml as shown in the example below:
            <!-- export services -->
                        <array value-type="java.lang.String">
                        <!-- Add extension resources to be loaded by Cortex Webapp here. -->
  2. In rest-tutorials\webapp\pom.xml, change the POM to reference your resource-configuration project following the example below. You will need to change the group-id, artifiact-id, and version to the values of your resource-configuration POM; these are just examples.
    		             <!-- Just use Cortex DCE resource configuration -->
  3. Rebuild the following projects using mvn clean install in this order:
    1. Cortex API resource-configuration project
    2. Cortex API rest-tutorials web application
  4. Run the tutorial's web application: in your command line, navigate to rest-tutorials\webapp and run the following:
    mvn tomcat:run-war