哈德森/Maven发布快照 [英] hudson/maven publishing snapshots

查看:63
本文介绍了哈德森/Maven发布快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够使用maven将快照发布到存储库(或让hudson在使用maven进行每次构建后发布快照).我一直在阅读POM的SCM部分,并且有两个问题.抱歉,如果我不在这里-这部分对我来说是新的.

I would like to be able to publish snapshots to the repository using maven (or have hudson publish snapshots after each build using maven). I've been reading up on the SCM section of the POM, and I have a couple of questions. Sorry if I'm off base here - this part is new to me.

  1. 我不想将用户名和密码放在POM的SCM部分(在开发人员连接下). hudson(或使用maven任务的其他任何人)是否还有其他方法可以使用maven获得发布授权,而无需在POM中输入用户名/密码?

  1. I don't want to put my username and password in SCM section the POM (under developer connection). Is there any other way for hudson (or anyone else using the maven task) to gain authorization to publish using maven without putting a username/password in the POM?

仅使用maven从存储库中拉出,SCM连接标记可以指向Web svn(URL标记现在起作用).在我们的存储库中,您只需输入用户名和密码即可提取代码.

For just pulling from the repository using maven, can the SCM connection tag point to web svn (the URL tag does right now). In our repository, you need a username and password just to pull down the code.

谢谢

杰夫

推荐答案

要发布登录数据,可以将其放置在$ HOME/.m2/settings.xml

For publishing your login data can be placed in $HOME/.m2/settings.xml

<settings>    
    <servers>
        <server>
            <id>internal</id>
            <username>admin</username>
            <password>admin</password>
        </server>
    </servers>
</settings>

要从源代码管理中拉出,您需要配置Hudson,并且不需要从POM中读取.

For pulling from source control you'll need to configure Hudson, and it does not need to read from the POM.

这篇关于哈德森/Maven发布快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆