site deployment?

3 views
Skip to first unread message

lukewpatterson

unread,
Dec 14, 2010, 1:30:52 PM12/14/10
to maven-svn-wagon
Couple of questions:

Does it support site deployment?
How chatty are the deployment commits? i.e. is the deployment one big
commit or does it need multiple commits?

Oleg Estekhin

unread,
Dec 14, 2010, 1:50:15 PM12/14/10
to maven-svn-wagon
Hi

This wagon can be used to deploy a site inside an svn repository, but
i don't have an example of this as i prefer to update site manually.

During the deployment there are a lot of commits, and i can't really
do anything about that - maven opens and closes wagon connection many
times during the deployment process and i have to commit on each close
least i will loose some information. This is the "feature" of the maven
+wagon behavior and all wagons based on the version control will
produce many separate commits.

The example of this is http://code.google.com/p/assertions/source/list?num=25&start=127.
r127 is done manually as i perform some post-processing after the site
is generated, and r115-r126 are the result of the release:prepare and
release:perform with this wagon.

lukewpatterson

unread,
Dec 14, 2010, 1:59:28 PM12/14/10
to maven-svn-wagon
Thanks, Oleg. Great work on this. I'll give it a try.

It's good to know the background reason why deployments span multiple
commits.

I tried the other two competing wagons, but it seems they are stuck in
the mud:

wagon-scm - "Wagon SCM does not automatically create missing
directories during deployment" http://jira.codehaus.org/browse/WAGON-297
wagon-svn - "doesn't use auto-props" https://wagon-svn.dev.java.net/issues/show_bug.cgi?id=4

Oleg Estekhin

unread,
Dec 14, 2010, 2:09:19 PM12/14/10
to maven-s...@googlegroups.com
A little warning on autoproperties and site deployment - if you have
svn:eol-style set for .html files then site deployment will probably fail
with infamous "svn: Inconsistent line ending style" because some maven
plugins used in the site generation still produce files with both cr and
cr+lf line endings. See, for example,
http://jira.codehaus.org/browse/MPIR-178 (this one is fixed) and
http://jira.codehaus.org/browse/JXR-85 (not fixed yet).

Removing (or not configuring in the first place) svn:eol-style settings for
.html and .css files "fixes" this problem, but I still prefer to commit site
manually.

-----Исходное сообщение-----
From: lukewpatterson
Sent: Tuesday, December 14, 2010 9:59 PM
To: maven-svn-wagon
Subject: Re: site deployment?

lukewpatterson

unread,
Dec 14, 2010, 2:19:50 PM12/14/10
to maven-svn-wagon
Thanks for the heads up on eol-style issues

Sounds like I might have to throw in some antrun with FixCRLF
http://ant.apache.org/manual/Tasks/fixcrlf.html

lukewpatterson

unread,
Dec 15, 2010, 12:30:31 PM12/15/10
to maven-svn-wagon
notes from the field:

for site deployment it looks like the deploy plugin is getting smarter
in its wagon interaction, not sure when it got better, but I just
deployed a site with maven-deploy-plugin 2.5 and it only needed one
commit
Reply all
Reply to author
Forward
0 new messages