Home:ALL Converter>SVN version in Maven tasks with SVNKit on MacOS

SVN version in Maven tasks with SVNKit on MacOS

Ask Time:2013-03-02T02:53:59         Author:thcricketfan

Json Formatter

I am getting this error in a Maven build (mvn clean install) on a Mac with Mountain Lion

org.tmatesoft.svn.core.SVNException: svn: The path 'XYZ' appears to be part of Subversion 1.7 (SVNKit 1.4) or greater working copy rooted at '/Users/XYZ/workspace/XYZ'. Please upgrade your Subversion (SVNKit) client to use this working copy.

I had SVN installed as part of the Apple Command Line tools package and that gets installed at /usr/bin. I have installed the latest SVN as well but that got installed at /usr/local/bin. When the maven build runs, it does not pick up the latest SVN, it picks the older one and fails. Has anyone faced this kind of problem before? I think there are 2 options - 1) Somehow force maven to use the new installed SVN. 2) Upgrade the SVN installed as part of Apple' Command Line tools to the latest SVN. I have reinstalled Command Line tools with the latest version but it still sticks to the older version.

I dont control the pom.xml so modifying it is not a viable option.

Any pointers in resolving this would be much appreciated. Thanks!

Author:thcricketfan,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/15164850/svn-version-in-maven-tasks-with-svnkit-on-macos
yy