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.
- Open the .m2/Settings.xml file.
- Update the appropriate database profile in the <profiles> section with the schema name and credentials of the database.
- 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>

