Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行mvn发行版的svn提交问题:准备_Svn_Maven Release Plugin - Fatal编程技术网

运行mvn发行版的svn提交问题:准备

运行mvn发行版的svn提交问题:准备,svn,maven-release-plugin,Svn,Maven Release Plugin,我正在尝试运行mvn版本:准备并获得以下错误。 我有一个扁平的项目结构。我使用SVN作为源代码管理工具 [ERROR] BUILD FAILURE [INFO] --------------------------------------------------------------- [INFO] Unable to commit files Provider message: The svn command failed. Command output: svn: 'D:\home\dev

我正在尝试运行mvn版本:准备并获得以下错误。 我有一个扁平的项目结构。我使用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>
org.apache.maven.plugins'maven-release-plugin'2.1'

目录不包含.svn(隐藏)文件夹。我怀疑您试图从导出的目录中释放项目,而不是先从svn中签出它。 Maven在发布时需要.svn文件夹。 此外,您需要提交所有更改,并且没有尚未添加的文件/目录

基本上,你需要有一个干净的结帐,没有任何形式的本地更改,以使这项工作


此外,如果以上是发布插件的完整设置,那么您将丢失和其他一些东西,因此这肯定不起作用。(但是,您可能也从某个地方继承了这些内容;无论如何,这是另一个问题)。

您是否可以在此处显示POM?您是否在pom的SCM区域中配置了connection和developerConnection?