Maven Settings in Anypoint Code Builder
Anypoint Code Builder uses Apache Maven to build and manage your Mule projects (implementation and integration projects) and API specifications in design projects. All Maven configurations, such as custom repositories, proxies, and server credentials, are managed through a central settings.xml
file.
For information about the Maven file settings.xml
, see the Maven documentation.
Custom Location for Maven Settings File in Anypoint Code Builder
Use the Apache Maven file settings.xml
to configure the Maven settings, such as repositories, proxy settings, and credentials. For detailed information, see Settings Reference in the Apache Maven documentation.
To change the default path to your Maven settings.xml
directory, set the maven.settings
or M2_REPO
system property.
To locate settings.xml
, the IDE first checks for a maven.settings
configuration. If the property specifies a path, the IDE uses the settings.xml
file at that path. If maven.settings
doesn’t specify a path or if the file isn’t present at that path, the IDE checks for settings.xml
within the path set by the M2_REPO
classpath variable (for example, M2_REPO/settings.xml
). If settings.xml
isn’t found at that path, the IDE creates an empty settings.xml
file in the default location, ${user.home}/.m2/repository
.
User and Internal Maven Settings in Anypoint Code Builder
Anypoint Code Builder reads its configuration from your Maven settings.xml
file. To configure Maven, for example, to add repositories, proxies, or credentials, edit your settings.xml
file, usually located in your ~/.m2/
directory.
Anypoint Code Builder uses the settings from your settings.xml
file to create an internal temporary settings file named acb_settings.xml
. Changes made to the acb_settings.xml
file are lost when you reopen the IDE. The acb_settings.xml
file is located in ${user.home}/AnypointCodeBuilder/maven
.
If you troubleshoot a project in Anypoint Code Builder, export the file with any sensitive information, such as passwords, obfuscated. See Export Troubleshooting Information for instructions.