mvn release:prepare 没有发现我修改了文件?

发布于 2024-07-27 12:22:41 字数 1366 浏览 4 评论 0原文

在 Windows 系统上针对本地托管的 VisualSVN 服务器实例运行。 我的 PATH 变量上有 C:\Program Files\VisualSVN Server\bin ,这样我就可以简单地从命令行运行 svn 命令。

我正在尝试在 Windows 工作站上准备并执行发布,并且我注意到 release:prepare 似乎忽略了我已修改文件的事实:

C:\Documents and Settings\...\workspace\project>svn status  
M       pom.xml
M       src\main\java\company\blah\SomeFile.java

然而,当我运行 mvn release:prepare 时,它似乎没有注意到我修改的文件,并尝试签入新的 POM 并标记版本:

[INFO] 验证是否没有本地修改...
[信息] 执行:cmd.exe /X /C "svn --non-interactive status"
[信息] 工作目录:C:\Documents and Settings\blah\workspace\project-blah
[信息] 检查快照的依赖项和插件...
“Project BLAH”的发行版本是什么? (com.vapps:project-blah) 0.0.1: :
“Project BLAH”的 SCM 发布标签或标签是什么? (com.vapps:project-blah)project-blah-0.0.1::
“Project BLAH”的新开发版本是什么? (com.vapps:project-blah) 0.0.2-SNAPSHOT: :
[信息] 改造“Project BLAH”...
...
...
[INFO] 完整运行将签入 1 个文件,并显示消息:“[maven-release-plugin] 为下一次开发迭代做好准备”

(请注意,此输出来自使用 -DdryRun=true 运行,但是无论哪种方式,我都会得到相同的结果)

有谁知道为什么我有本地修改的文件缺少 mvn release:prepare 吗? 会不会是在 Windows 上运行的一些尴尬的组合?

更新:似乎与此错误相关,<代码>scm插件。

Running on a Windows system, against a locally hosted VisualSVN server instance. I have C:\Program Files\VisualSVN Server\bin on my PATH variable so that I can simply run svn commands from the command line.

I'm attempting to prepare and perform a release on my Windows workstation, and I've noticed that release:prepare seems to miss the fact that I have modified files:

C:\Documents and Settings\...\workspace\project>svn status  
M       pom.xml
M       src\main\java\company\blah\SomeFile.java

Yet when I run mvn release:prepare, it doesn't seem to notice my modified files, and goes as far as attempting to check in the new POM and tagging the release:

[INFO] Verifying that there are no local modifications...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
[INFO] Working directory: C:\Documents and Settings\blah\workspace\project-blah
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "Project BLAH"? (com.vapps:project-blah) 0.0.1: :
What is SCM release tag or label for "Project BLAH"? (com.vapps:project-blah) project-blah-0.0.1: :
What is the new development version for "Project BLAH"? (com.vapps:project-blah) 0.0.2-SNAPSHOT: :
[INFO] Transforming 'Project BLAH'...
...
...
[INFO] Full run would be checking in 1 files with message: '[maven-release-plugin] prepare for next development iteration'

(Note that this output is from running with -DdryRun=true, but I get the same result either way)

Does anyone have any idea why mvn release:prepare is missing that I have locally modified files? Could it be some awkward combination of running on Windows?

Update: appears to be related to this bug with the scm plugin.

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

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

发布评论

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

评论(1

寻找一个思念的角度 2024-08-03 12:22:41

正如提问者在更新中指出的那样,这是 http://jira.codehaus.org/browse/ SCM-480已修复至少两年。

As the questioner pointed out in their update, this was http://jira.codehaus.org/browse/SCM-480 which has been fixed for at least two years.

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