In order to be able to utilize Enterprise artifacts, it is necessary to
allow Maven access to the SkyVault Private Repository, where the Enterprise artifacts
are maintained.
You need to have permission to access the SkyVault private repository. Enterprise
customers can obtain access credentials from SkyVault.
In order to allow Maven access to the SkyVault Private Repository, you must add
your credentials to the Maven configuration. This is usually done by adding an entry to
the settings.xml file, located in your .m2
directory.
- Obtain access credentials for the SkyVault Private Repository from SkyVault. 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 SkyVault. 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 SkyVault Private Repository.