Prepare Source Code
Prepare Source Code
Overview
This page describes how to prepare Elastic Path source code for use by your project. The diagram below shows the steps.
Setup Local Build Environment
Unzip Source Release Packages
Elastic Path Commerce source code is delivered in the following release package:
Release Package | Contents |
---|---|
EP-Commerce-7.1.0.zip | Core Commerce, Cortex |
- Unzip the contents of the release package into your project source directory.
Configure the Module's settings.xml File
The extensions module has a maven/individual-settings.xml you will use.
- Change EP_REPOSITORY_USER and EP_REPOSITORY_PASSWORD
to the credentials used for connecting to our public
Nexus.
<servers> <server> <id>ep-public</id> <username>EP_REPOSITORY_USER</username> <password>EP_REPOSITORY_PASSWORD</password> </server> <server> <id>ep-cortex</id> <username>EP_REPOSITORY_USER</username> <password>EP_REPOSITORY_PASSWORD</password> </server> <server> <id>ep-commerce-engine</id> <username>EP_REPOSITORY_USER</username> <password>EP_REPOSITORY_PASSWORD</password> </server> <server> <id>ep-accelerators</id> <username>EP_REPOSITORY_USER</username> <password>EP_REPOSITORY_PASSWORD</password> </server> </servers>
- Make any changes required for your project environment.
- Commit the changes to source control.
- Rename individual-settings.xml to settings.xml copy it to your ${user.home}/.m2 directory.
Re-version Modules for Development
Elastic Path release packages contain modules with RELEASE versions. Prior to starting development, the modules must be reversioned to SNAPSHOT versions using scripts provided in the devops module.
On Windows, use either Git Bash, MinGW, or Cygwin to run the script.
To re-version modules for development:
Set up local Developer environment
Follow the instructions at Setting up your Developer Environment to configure, build and run Elastic Path Commerce in a command line environment.