How to get rid of maven snapshot versions

狂风中的少年 提交于 2019-12-09 07:33:14

问题


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.



来源:https://stackoverflow.com/questions/758921/how-to-get-rid-of-maven-snapshot-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!