| Add this to your {{$HOME/.m2/settings.xml}} to enable publishing to the Apache Nexus repo. This works for snapshots or staging final binaries. |
| |
| {code:xml|title=.m2/settings.xml} |
| <settings> |
| <servers> |
| <server> |
| <id>apache.snapshots.https</id> |
| <username>yourapacheid</username> |
| <password>yourapachepass</password> |
| </server> |
| <server> |
| <id>apache.releases.https</id> |
| <username>yourapacheid</username> |
| <password>yourapachepass</password> |
| </server> |
| </servers> |
| </settings> |
| {code} |
| |
| Then publish via: |
| |
| {code} |
| $ mvn clean deploy |
| {code} |