Package: tomcat
Version: 5.5.26-5

When using Hudson + maven-release-plugin the last one needs to perform
SVN manipulations unattended. Unfortunately, due to the problem, that
HOME variable setting is inherited from a user, who launched tomcat, svn
CLI cannot correctly read/persist authentication data, in particular
"mvn release:prepare" fails with message:

svn: OPTIONS of Server certificate verification failed: issuer is not
trusted

Solution:

1. Make sure /usr/share/tomcat5.5 is a HOME directory for user tomcat55.
Then add HOME initialization to tomcat startup script:

=== /etc/init.d/tomcat5.5 ===
CATALINA_HOME=/usr/share/$NAME
DEFAULT=/etc/default/$NAME

export HOME=$CATALINA_HOME
=== end ===

2. Become 'tomcat user' and run 'svn list ...' command and accept the
certificate permanently:

# sudo -u tomcat55 -H /bin/bash
tomcat55:/usr/share/tomcat5.5$ svn list https://.../

3. maven-release-plugin plugin can be configured via project settings in
Hudson, e.g. one may wish to define:

-Dresume=false release:prepare release:perform
-DtagBase=https://.../svn/public/tags/group/project/
-Dusername=user -Dpassword=nnn

Additional information:
http://centurion.dynalias.com/w/software/maven#releasing_the_project

With best wishes,
Dmitry





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to