In my setup SVN repository is multiproject setup and tags/ directory can only be created in. It can't be modified.
I'm unable to use "svn release:prepare" due to it trying to do "svn copy . tag_url". I've made a patch that does "svn copy trunk_rul tag_url" and that makes it work fine. I think this is the right approach in general and is also more efficient from SVN perspective. Is there any chance this issue will be addressed in next release?
Index: src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java
===================================================================
— src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java (revision 586574)
+++ src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java (working copy)
@@ -157,7 +157,8 @@
cl.createArgument().setValue( messageFile.getAbsolutePath() );
- cl.createArgument().setValue( "." );
+ String projectRoot = SvnTagBranchUtils.getProjectRoot(repository.getUrl());
+ cl.createArgument().setValue( projectRoot + "/trunk" );
// Note: this currently assumes you have the tag base checked out too
String tagUrl = SvnTagBranchUtils.resolveTagUrl( repository, new ScmTag
( tag ) );
In my setup SVN repository is multiproject setup and tags/ directory can only be created in. It can't be modified.
I'm unable to use "svn release:prepare" due to it trying to do "svn copy . tag_url". I've made a patch that does "svn copy trunk_rul tag_url" and that makes it work fine. I think this is the right approach in general and is also more efficient from SVN perspective. Is there any chance this issue will be addressed in next release?
Index: src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java
===================================================================
— src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java (revision 586574)
+++ src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java (working copy)
@@ -157,7 +157,8 @@
cl.createArgument().setValue( messageFile.getAbsolutePath() );
+ String projectRoot = SvnTagBranchUtils.getProjectRoot(repository.getUrl());
+ cl.createArgument().setValue( projectRoot + "/trunk" );
// Note: this currently assumes you have the tag base checked out too
String tagUrl = SvnTagBranchUtils.resolveTagUrl( repository, new ScmTag
( tag ) );
- cl.createArgument().setValue( "." );
+ String projectRoot = SvnTagBranchUtils.getProjectRoot(repository.getUrl());
+ cl.createArgument().setValue( projectRoot + "/trunk" );
// Note: this currently assumes you have the tag base checked out too String tagUrl = SvnTagBranchUtils.resolveTagUrl( repository, new ScmTag ( tag ) );