How to get rid of maven snapshot versions

2019-03-21 16:41发布

问题:

I have been using maven for a while now. But I've never learnt how to get rid of the snapshot version.

Please share some articles on how to do a release of the artifacts. i.e. how do I publish my 0.0.1-SNAPSHOT versions to (say) 1.0.0

回答1:

Use the mvn:release plugin.

mvn release:prepare
mvn release:perform

That's about all you need to do, in the general case. See here for the more complete documentation.