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.

Elastic Path Maven Profiles

Elastic Path Maven Profiles

Maven build profiles are sets of configuration settings for building your software in different environments. For example, if you have tomcat-developer as an active profile, Maven builds your projects according to the tomcat-developer settings, which in this case builds your web applications into a deployable Tomcat WAR.

Elastic Path defines a number of build profiles in commerce-engine/pom.xml so you can build and deploy your Elastic Path Commerce platform on different application servers and databases. You can activate or deactivate the build profiles in your Maven settings.xml file that is located in your .m2 directory.

Application Server Profiles

The application server profiles are used to configure the type of WAR file generated by Maven. Choose the appropriate profile for your server.

Profile WAR file

tomcat-developer

Tomcat WAR with HTTP port 8080 and HTTPS port 8443

weblogic-developer

Weblogic WAR with HTTP port 7001 and HTTPS port 7002

Additional profiles can be used to modify the Tomcat ports for for development:

Profile Description

ep-developer

Assigns separate ports for each webapp. See Running Webapps.

wtp-developer

Assigns the same port for all webapps for use with Eclipse WPT.

Note: Changing Profiles

If you switch application server profiles as you are developing, you must re-populate your database with the settings associated with these profiles as described in Populate the Database.

Database Profiles

The database server profiles are used to configure the database the Elastic Path platform uses. Choose the appropriate profile for your database system.

Database Profile Database

mysql-dev-db

MySQL

oracle-dev-db

Oracle

mssql-dev-db

MSSQL

Code Compliance Profiles

The code compliance profiles control the level of code compliance checking.

Compliance Profile Behavior

enforce-code-compliance

Runs PMD and Checkstyle checks. Build fails if there are compliance errors.

pass-build-even-if-code-compliance-fails

Runs PMD and Checkstyle checks. Build passes if there are compliance errors.

skip-code-compliance Skips all code compliance checks.

Default profiles in settings.xml

The global profiles that are active in the default extensions/maven/settings.xml are:

Profile Description

ep-developer

Assigns separate ports for each web app. See Running Webapps.

tomcat-developer Generates Tomcat WARs.
mysql-dev-db Configures MySQL database.
with-oauth2-resource Configures Cortex to use OAuth 2.0 authentication.
activemq-dev-jms Configures JMS to use ActiveMQ broker on port 61616.