I'm having issues with my maven and svn set up. I have recently been playing with git and now I'm seeing issues with SVN. I have a feeling an install forced SVN to update, but it doesn't look to be the case from the look of my installed software.
I am using cygwin, but the issues also arise when I try this through the command prompt.
The setup I have on my machine is:
- svn, version 1.7.14 (r1542130)
- Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 13:51:28+0000)
- SlikSvn 1.7.17
- Cygwin 1.7.29(0.272/5/3)
I am able to commit to SVN and update from it using Tortoise SVN (version 1.7.14) but whenever I try to release my application with the release:prepare and release:perform commands, I get the following failures. The issue is that the path for the checkout is being concatenated to itself.
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 23.693s
[INFO] [INFO] Finished at: Tue May 20 14:19:59 BST 2014
[INFO] [INFO] Final Memory: 17M/138M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file C:\cygwin\tmp\maven-scm-1575361850.commit --targets C:\cygwin\tmp\maven-scm-6249519314346478050-targets"
[INFO] Working directory: C:\Users\danielt\Workspace\Common\Adapters\Zuul\trunk
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.022s
[INFO] Finished at: Tue May 20 14:19:59 BST 2014
[INFO] Final Memory: 13M/100M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project zuul-api: Unable to commit files
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E155010: Commit failed (details follow):
[ERROR] svn: E155010: The node '/cygdrive/c/Users/danielt/Workspace/Common/Adapters/Zuul/trunk/C:/Users/danielt/Workspace/Common/Adapters/Zuul' was not found.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
The command I use is this:
mvn release:prepare -Dtag=1.8.30 -DreleaseVersion=1.8.30 -DdevelopmentVersion=1.8.31-SNAPSHOT -Dresume=false -DautoVersionSubmodules=true release:perform
The really bizarre thing is that maven is happy enough to check the local modifications as shown below.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Zuul Api 1.8.30-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ zuul-api ---
[INFO] Verifying that there are no local modifications...
[INFO] Executing: cmd.exe /X /C "svn --non-interactive status"
[INFO] Working directory: C:\Users\danielt\Workspace\Common\Adapters\Zuul\trunk
If anyone is aware of any version incompatibilities between svn, maven and/or cywgin, I'd be really pleased to hear about them and try them out to see if they fix my issues.