Maven 插件 - mvn 发布:准备

发布于 2024-10-08 01:11:49 字数 367 浏览 0 评论 0原文

嗨,我正在通过新创建的插件(mpc)检查pom(scm区域)的某些部分...但现在我在mvn发布期间遇到了这个问题:准备使用创建的插件(mpc)的不同模块我得到了以下消息:

[INFO] [INFO] Scanning the projects...
[INFO] [INFO] ...
[INFO] [INFO] not a working copy....

输出“不是工作副本”...是因为我正在检查 svn 信息输出... 问题是我可以在 mvn release:prepare 期间识别这种状态吗?例如通过属性或检查当前项目的属性?换句话说,这意味着我知道我的 Maven 插件 (mpc) 中当前release:prepare 周期正在运行?

Hi i'm checking via new created plugin (mpc) some parts of the pom (scm area)...but now i faced that during the mvn release:prepare of a different modules which uses the created plugin (mpc) I got the following messages:

[INFO] [INFO] Scanning the projects...
[INFO] [INFO] ...
[INFO] [INFO] not a working copy....

The output "not a working copy" ...is because I'm checking the svn info output...
The question is can I recogdnize this state during the mvn release:prepare somehow ? for example via roperties or checking an attribute of the current project ? Which means in other words that I know inside my maven plugin (mpc) that currently the release:prepare cycle is running?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

我偏爱纯白色 2024-10-15 01:11:49

我找到了解决方案。我只是检查当前构建是否正在构建 SNAPSHOT 版本(ArtifactUtil.isSnapshot() 非常有帮助)。

I found a solution. I simply check if the current build is building an SNAPSHOT version or not (ArtifactUtil.isSnapshot() very helpfull).

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