svn commit 运行 mvn release:prepare 时出现问题
我正在尝试运行 mvn release:prepare 并收到以下错误。 我有一个扁平的项目结构。我使用 SVN 作为源代码管理工具。
[ERROR] BUILD FAILURE
[INFO] ---------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: 'D:\home\dev\eclipse_workspace' is not a working copy
我的发布插件被添加到父pom中,如下
<'plugin>
<'groupId>org.apache.maven.plugins'<'/groupId>
<'artifactId>maven-release-plugin'<'/artifactId>
<'version>2.1'<'/version>
<'/plugin>
I am trying to run mvn release:prepare and getting the following error.
I have a flat project structure. I am using SVN as source code management tool.
[ERROR] BUILD FAILURE
[INFO] ---------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: 'D:\home\dev\eclipse_workspace' is not a working copy
my release plugin is added to the parent pom as follows
<'plugin>
<'groupId>org.apache.maven.plugins'<'/groupId>
<'artifactId>maven-release-plugin'<'/artifactId>
<'version>2.1'<'/version>
<'/plugin>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该目录不包含 .svn(隐藏)文件夹。我怀疑您正在尝试从导出的目录中发布项目,而不是先从 svn 中检出它。
Maven 在发布时需要 .svn 文件夹。
此外,您需要提交所有更改,并且没有尚未添加的文件/目录。
基本上,您需要进行干净的结帐,不要进行任何类型的本地更改才能使其正常工作。
另外,如果上面是发布插件的完整设置,那么您会缺少 和其他一些东西,所以这肯定行不通。 (但是,您也可能从某个地方继承这些;无论如何 - 这是另一个问题)。
The directory does not contain the .svn (hidden) folders. I suspect that you are trying to release a project from an exported directory, instead of having checked it out from svn first.
Maven needs the .svn folders when doing a release.
Also, you need to have committed all your changes and not have files/directories which aren't added yet.
Basically, you need to have a clean checkout with no local changes of any kind in order to get this to work.
In addition, if the above is the complete setup for the release plugin, you're missing the and a few other things, so this will definitely not work. (But, you might also be inheriting these from somewhere; anyhow -- that's another problem).