Build the Source Code
Build the Source Code
Checkout Source Code
Configure Maven Settings.xml
You need to configure your local copy of the settings.xml, which is available in the extensions project before you build the source code.
To create a local Maven repository, which will contain the Elastic Path build artifacts
you build:
- With the command line, create a .m2 directory in your user home folder. In
Windows, the command is:
mkdir C:\Users\<YourWindowsUser>\.m2
- Copy settings.xml from the \extensions\maven source directory to your .m2 directory.
- Modify settings.xml values to match your local developer environment. Pay
attention to:
Property Profile Definition epdb.reset_user mysql-dev-db The DB account with administrative permissions that can drop and create databases and users in your local database. epdb.reset_password mysql-dev-db The password for epdb.reset_user. ep.local.asset.path - The path to your local /extensions/assets/ext-assets/src/main/assets source directory ep.smtp.host - Your SMTP Server Tip:If these property values do not exist in the settings.xml, then your source code has likely not been prepared according to the Starting Construction Guide and you will not be able to build and deploy the Elastic Path Web Applications.
Build Commerce Engine
- With the command line, navigate to the commerce-engine folder in your source directory.
- Enter the following Maven
command.
mvn clean install -DskipAllTests
The -DskipAllTests stops Maven from executing any unit and integration tests, but does not stop them from building the tests. For more information on assets, see Managing Assets. For more details on the Maven arguments, see Elastic Path Maven Commands.