Maven 插件 - mvn 发布:准备
嗨,我正在通过新创建的插件(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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案。我只是检查当前构建是否正在构建 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).