How to get rid of maven snapshot versions

2019-03-21 16:28发布

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条回答
走好不送
2楼-- · 2019-03-21 17:00

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.

查看更多
登录 后发表回答