SvnResolver

Using subversion as a repository

At our site, we have quickly moved to Ivy for dependency management. The speed of the uptake has created some issues around the management of the repository. We wanted to investigate managing our Ivy repository through Subversion. This would allow us to leverage the

Trail 1: Ivy+Svn

Ivy released a resolver which resolves artifacts against a Subversion repository. The Ivy people call this ivy+svn. Ivy release ivy+svn v0.4 in 2005. There doesnt appear to have been much activity since.

The ivy+svn home page is at [WWW] http://www.ivytools.org/ivy+svn.html. Its a single page that tells the user how to use ivy+svn. Below is the pre-work l had to do to get ivy+svn working.

Pre-work

Download ivy+svn 0.4
Download dependencies
Install subversion
Install SVN host certificate

I cant remember at what point l needed this or if l still do need it. To be safe, lm including it.

This blog, [WWW] http://blogs.sun.com/andreas/entry/no_more_unable_to_find, documents and provides a simple tool to capture a certificate and store it in a file, jssecacerts.

Build the tool and run it against your subversion host. It will produce a file, jseecacerts, which we will add to our Ant library later.

Configure ant
  1. Copy the following file from ivy+svn-0.4-with-dependencies to ANT_HOME/lib

    • ivy+svn-0.4.jar

  2. Copy the following files from ivy+svn-0.4-with-dependencies\lib to ANT_HOME/lib

    • svnClientAdapter-0.9.13.jar

    • svnjavahl-1.1.4.jar

  3. Copy the following file from ivy-1.3.1-bin.zip to ANT_HOME/lib

    • ivy-1.3.1.jar

  4. Copy the following file from where you ran InstallCert to ANT_HOME/lib

    • jssecaserts

  5. Add the following to the ANT_OPTS environment variable

    • -Dosgi.os=win32

      • this is required for the issue 83 patch applied to svnClientAdapter

    • -Djavax.net.ssl.trustStore=C:\java\apache-ant-1.6.5\lib\jssecacerts

      • this is required for SSL

Post work

This is the end of the pre-work. You should now be able to create an ivy conf file as per the ivy+svn instructions.

Some issues we are still working through

last edited 2007-03-21 23:53:49 by JamieBurns