Introduction
This document is intended to set up the Maven committer settings, i.e. the ${user.home}/.m2/settings.xml
.
Enable Apache Servers
Maven uses several servers configuration to deploy snapshots and releases on the Apache servers. You need to tell to Maven what your Apache username is.
It is highly recommended to use Maven's password encryption capabilities for your passwords.
<settings>
...
<servers>
<!-- To publish a snapshot of some part of Maven -->
<server>
<id>apache.snapshots.https</id>
<username> <!-- YOUR APACHE LDAP USERNAME --> </username>
<password> <!-- YOUR APACHE LDAP PASSWORD --> </password>
</server>
<!-- To stage a release of some part of Maven -->
<server>
<id>apache.releases.https</id>
<username> <!-- YOUR APACHE LDAP USERNAME --> </username>
<password> <!-- YOUR APACHE LDAP PASSWORD --> </password>
</server>
...
</servers>
</settings>
Enable sending announcement e-mails
To be able to send out announcements of Maven releases you need to add a couple of properties to the apache-release
profile.
<settings>
...
<profiles>
<profile>
<id>apache-release</id>
<properties>
<apache.availid> <!-- YOUR APACHE LDAP USERNAME --> </apache.availid>
<smtp.host> <!-- YOUR SMTP SERVER --> </smtp.host>
</properties>
</profile>
...
</profiles>
</settings>