Building Elastic Path Commerce
Prerequisites
Ensure that you have completed the following before you proceed to build Elastic Path Commerce:
- Check-out the
ep-commerce
Git repository. See Source Code. - Configure your build environment. See Requirements for Setting up your Developer Environment.
Build All Projects
You can build all projects with one Maven command.
Open the command line and navigate to the Elastic Path Commerce source directory.
Run the following Maven command:
mvn clean install -DskipAllTests
With the
-DskipAllTests
command, the system does not run any unit test or integration tests, however the system still builds the test. For more details on the Maven arguments, see Elastic Path Maven Commands.
Build Deployment Package
The Commerce deployment package is required to build the Commerce container images. After building all projects, run the following Maven command to build the deployment package:
mvn install -f extensions/packager/ext-deployment-package/pom.xml
Build Individual Modules
You can also build each module in Elastic Path separately, if required. However, you cannot build the individual modules unless you build the Elastic Path Commerce source directory at least once. When you build the Elastic Path Commerce modules separately, you must follow the following order:
commerce-data
commerce-engine
health-monitoring
commerce-manager
cortex-resources
extensions
For example, when you build the commerce-manager
module, you must first build the commerce-data
and commerce-engine
modules separately.
To build a modules individually, in the command line, navigate to the Elastic Path Commerce source directory.
Navigate to the project/module that you want to build.
Enter the following Maven command:
mvn clean install -DskipAllTests
With the
-DskipAllTests
command, the system does not run any unit test or integration tests, however the system still builds the test. For more details on the Maven arguments, see Elastic Path Maven Commands.