【发布时间】:2012-10-11 03:31:13
【问题描述】:
我的项目架构是这样的:
--Parent
--Submodule1
--Submodule2
--pom.xml(main)
Parent 是包含所有 maven 插件配置、库版本等的项目。它是所有项目的父级,也是所有子模块的父级。 我在 pom.xml(main) 中配置插件,如下所示:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<tagBase>svn://192.168.5.213/hxbos/hxecp-src/tags/hxbos</tagBase>
<branchBase>svn://192.168.5.213/hxbos/hxecp-src/branches/hxbos</branchBase>
<remotetagging>true</remotetagging>
<checkModificationExcludes>
<checkModificationExclude>**/*.log</checkModificationExclude>
<checkModificationExclude>**/*.jar</checkModificationExclude>
<checkModificationExclude>**/system*</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
这是我的 scm 信息:
<scm>
<connection>scm:svn:svn://192.168.5.213/hxbos/hxecp-src/trunk/hxbos</connection>
<developerConnection>scm:svn:svn://192.168.5.213/hxbos/hxecp-src/trunk/hxbos</developerConnection>
<url>scm:svn:svn://192.168.5.213/hxbos/hxecp-src/trunk/hxbos</url>
</scm>
但是当我使用:mvn release:prepare 时,出现错误:
The svn tag command failed.
Command output:
svn: “svn://192.168.5.213/hxbos/hxecp-src/trunk/hxbos” does not exist in
revision 0.
为什么是修订版 0?
【问题讨论】:
-
因为仓库不存在。检查具有给定 IP 地址的机器上是否有 /hxbos/hxecp-src 下的存储库 ..
-
我确定存储库退出,我们正在使用。
-
谢谢,我已经看过FAQ了,帮不上忙!修订版是0,为什么?
-
所有子项目中都有scm元素吗?
标签: svn tags maven-release-plugin