Hudson/maven 发布快照

发布于 2024-07-24 09:48:03 字数 393 浏览 4 评论 0原文

我希望能够使用 Maven 将快照发布到存储库(或者让 Hudson 在每次使用 Maven 构建后发布快照)。 我一直在阅读 POM 的 SCM 部分,并且有几个问题。 抱歉,如果我在这里偏离了基地 - 这部分对我来说是新的。

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

  2. 对于仅使用 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.

  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?

  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

揽月 2024-07-31 09:48:03

对于发布,您的登录数据可以放置在 $HOME/.m2/settings.xml 中。

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

对于从源代码控制中拉取,您需要配置 Hudson,并且不需要从 POM 中读取。

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>

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

安稳善良 2024-07-31 09:48:03

您可以从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文