So I have a project and I do regular releases to maven without a problem. I now want to make available a SNAPSHOT version of this project. So I do \'mvn clean deploy\'. Ever
For the sake of completeness, I would like to add that it is also possible by modifying the pom.xml of a project, simply add
oss.sonatype.org-snapshot
http://oss.sonatype.org/content/repositories/snapshots
false
true
to your list of repositories.
In my opinion, this is a better solution than modifying ~/.m2/settings.xml. The pom.xml file will also be available for other project participants through Git and allow them to download the snapshots as well.
Source: this answer