Skip to main content

Introducing wagon-svn

Posted by kohsuke on November 7, 2007 at 12:30 PM PST

I just published the wagon-svn project, a Maven wagon implementation that talks to a Subversion repository directly. This enables Maven2 users to deploy artifacts and push website contents to a Subversion repository in a fully automated fashion.

The main motivation for writing code is for our projects on java.net. First, the web contents of java.net projects are controlled under Subversion/CVS, so we had no easy way to do mvn site:deploy. Wagon-svn fixes this. Second, our java.net projects couldn't directly deploy to the java.net maven2 repository (see the linked page for the workaround we had to do), which wagon-svn also fixes.

I've been using this in several of my projects already (such as Hudson) successfully, thanks to a few folks who served as guinea pigs — Paul Sterk and Stephen Connolly most notably.

The docs on the site explains how you need to update your POM to use this for your java.net projects. Finally, if you find this useful, you might find my java.net skin project useful too.

Related Topics >>

Comments

Hi ...

Hi ,

I used your plugin. It works like charm in case of upload. But It failed in case of download a set of files.

Error trace :

[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The wagon you are using has not implemented getFileList()
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.UnsupportedOperationException: The wagon you are using has not impleme
nted getFileList()
at org.apache.maven.wagon.AbstractWagon.getFileList(AbstractWagon.java:8
27)
at org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDir
ectoryScanner.java:283)
at org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scan(WagonDirect
oryScanner.java:245)
at org.codehaus.mojo.wagon.shared.DefaultWagonDownload.getFileList(Defau
ltWagonDownload.java:51)

It clearly said , you have not implemented the this method. Do you have any plan to update the code (add the patch).

I am quite confused about the fact that you did the implementation of single file download . Could you please update me how can I download the files using your plugin.

anyhelp would be approaciated.

Thank

Sandeep