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 to settings.xml, and distributionManagement tags to the maven POM which I want to deploy.
I put references to both my internal snapshot repo, and my internal release repo in the POM. is there a specific maven command or option, which specifies to deploy as a SNAPSHOT, and NOT to both repos? Or if I do deploy, will it automatically push one copy to each repo?
Can someone clarify this?´
If your
project.versioncontainsSNAPSHOT(e.g., 1.2-SNAPSHOT) and you executemvn deploy, artifacts will be deployed to your snapshot repository. If it doesn’t (e.g., 1.2) – they will be deployed to your release repository.