I may be missing something extremely obvious, but I need some clarification regardless. I am about to begin development using maven and archiva. I added both servers + settings
You can execute mvn deploy
.
If your POM version contains SNAPSHOT
as suffix, it will deploy into the repository configured under distributionManagement.snapshotRepository
.
If your POM doesn't contain SNAPSHOT
suffix, it will deploy into the repository configured under distributionManagement.repository
.
However, I do recommend you to use maven-release-plugin
to manage versioning and deployment. By running mvn -B release:clean release:prepare release:perform
, in resume:
SNAPSHOT
is removed from the version (e.g. 2.1-SNAPSHOT
-> 2.1
);2.1
);SNAPSHOT
is added (e.g. 2.2-SNAPSHOT
).