Hudson/maven 发布快照
我希望能够使用 Maven 将快照发布到存储库(或者让 Hudson 在每次使用 Maven 构建后发布快照)。 我一直在阅读 POM 的 SCM 部分,并且有几个问题。 抱歉,如果我在这里偏离了基地 - 这部分对我来说是新的。
我不想将我的用户名和密码放在 POM 的 SCM 部分(在开发人员连接下)。 hudson(或使用 maven 任务的任何其他人)是否有其他方式获得使用 maven 发布的授权,而无需在 POM 中添加用户名/密码?
对于仅使用 maven 从存储库中拉取,SCM 连接标记是否可以指向 web svn(URL 标记现在可以)。 在我们的存储库中,您需要用户名和密码才能拉取代码。
谢谢,
杰夫
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.
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?
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.
Thanks,
Jeff
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于发布,您的登录数据可以放置在 $HOME/.m2/settings.xml 中。
对于从源代码控制中拉取,您需要配置 Hudson,并且不需要从 POM 中读取。
For publishing your login data can be placed in $HOME/.m2/settings.xml
For pulling from source control you'll need to configure Hudson, and it does not need to read from the POM.
您可以从 pom 中删除 SCM 部分,并让 hudson 将“-Dproject.scm.developerConnection=scm:type:user@pass:foobase://footron/fooproj”传递给 maven。
Hudson 不需要 SCM 部分。 据我所知,您只需发布 scm 信息(通过标签或传递)即可。 您可以部署没有 SCM 标签的快照。
You could remove the SCM section from your pom and have hudson pass "-Dproject.scm.developerConnection=scm:type:user@pass:foobase://footron/fooproj" on to maven.
Hudson doesn't need the SCM section. As far as I can tell, you only the scm info (either by tag or by passing it in) for release. You can deploy snapshots without the SCM tags.