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.

Configuring Maven Settings

Configuring Maven Settings

The configurations in the Settings.xml file in your local .m2 Maven repository manages the database connection properties for the development environment.

  1. Open the .m2/Settings.xml file.
  2. Update the appropriate database profile in the <profiles> section with the schema name and credentials of the database.
  3. Ensure that this database profile is the only uncommented database profile in the <activeProfiles> section.

MySQL

<profile>
    <id>mysql-dev-db</id>
    <properties>
        <data.population.environment>local</data.population.environment>
        <epdb.schemaname>epschema</epdb.schemaname>
        <epdb.username>epuser</epdb.username>
        <epdb.password>password</epdb.password>
        <epdb.reset_user>admin_user</epdb.reset_user>
        <epdb.reset_password>admin_password</epdb.reset_password>   
    </properties>
</profile>
...
<activeProfiles>
        <!-- Uncomment one DB profile -->
        <activeProfile>mysql-dev-db</activeProfile>
        <!-- <activeProfile>oracle-dev-db</activeProfile> -->
        ...
Oracle XE
<profile>
    <id>oracle-dev-db</id>
    <properties>
        <data.population.environment>local</data.population.environment>
        <epdb.schemaname>epschema</epdb.schemaname>
        <epdb.databasename>XE</epdb.databasename>
        <epdb.username>${epdb.schemaname}</epdb.username>
        <epdb.password>password</epdb.password>
        <epdb.reset_user>sys as sysdba</epdb.reset_user>
        <epdb.reset_password>sys_password</epdb.reset_password>   
        <epdb.default.tablespace>users</epdb.default.tablespace>
        <epdb.temporary.tablespace>temp</epdb.temporary.tablespace>
     </properties>
</profile>
...
<activeProfiles>
        <!-- Uncomment one DB profile -->
        <!-- <activeProfile>mysql-dev-db</activeProfile> -->
        <activeProfile>oracle-dev-db</activeProfile>