configurationdirectoryinstallationarchiva

Separate Archiva configuration and installation directories


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?


Solution

  • 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