The Archiva documentation states:
The standalone installation of Archiva is capable of separating its configuration from installation
However, I didn't manage to do so with 1.3.6 and 1.4 (using Ubuntu 12.04).
$ARCHIVA_BASE
is set to /var/archiva
and exported, but the wrapper doesn't seem to take care of that and always launches in the installation directory.
Moreover, the 1.4 init script (bin/archiva) uses $BASEDIR
instead of $ARCHIVA_BASE
Does someone have a clue?
Post is old but I faced this problem recently and wanted to share what worked for me to make Archiva 2.2.3 execute as a service on RHEL 6.8
/opt/archiva
/var/archiva_data
using these instructions/opt/archiva/conf/wrapper.conf
and made the following change
set.default.ARCHIVA_BASE=/var/archiva_data
/opt/archiva/bin/archiva
and made the following change
RUN_AS_USER=foo
/etc/init.d/archiva
with /opt/archiva/bin/archiva
service archiva start