7月 262017
 

一般来讲,maven deploy时要部署到Nexus,需要在pom.xml 中添加如下类似的东东:

如此的话,该pom.xml 就不便于分享,还有人喜欢deploy到自己的Nexus呢;

其实,还可以在mvn deploy 时通过参数的方式来指定,如:

这样的话,不管snapshot还是release都会deploy到相同位置; 正确的姿势为分别设置snapshot和release的位置,如下:

参考:https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

 Posted by at 上午 11:48

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据