- Obtain access credentials for the Alfresco Private Repository from Alfresco. This is only available for Enterprise-level customers.
- Change into your Maven configuration directory. For Linux and Mac OS X that will most likely be ~/.m2 for a configuration on a per-user basis, or for global configuration in <maven_install>/conf/. On Windows this would be located in %USER_HOME%/.m2/ for a per-user configuration, and %M2_HOME%/conf for a global configuration.
Load settings.xml into your editor. Add the following new
server configuration in the <servers> section:
<server> <id>alfresco-private-repository</id> <username>username</username> <password>password</password> </server>Important: You will need to replace the placeholder text with your real username and password as allocated by Alfresco. Make a note of the id value, as this will be referenced from the pom.xml you will edit later in order to tell Maven to fetch Enterprise artifacts from this repository.Attention: It is possible to use encrypted passwords here. See the official Maven documentation for details on how to do this.
At this point you have configured Maven to have access to the Alfresco Private Repository.