[[2]] Copy the configuration files from the Archiva installation (eg <<</opt/archiva-1.0/conf>>> to the new location (eg. <<</var/archiva/conf>>>). If you've previously run Archiva, you may need to edit <<<conf/archiva.xml>>> to change the location of the repositories
- [[3]] Set the environment variable <<<APP_BASE>>> to the data location (eg. <<</var/archiva>>>). In bash, be sure to export the variable.
+ [[3]] Set the environment variable <<<ARCHIVA_BASE>>> to the data location (eg. <<</var/archiva>>>). In bash, be sure to export the variable.
[[4]] Start Archiva standalone as described above from the installation location
* <<<~/.m2/archiva.xml>>>
- * <<<$APP_BASE/conf/archiva.xml>>>
+ * <<<$ARCHIVA_BASE/conf/archiva.xml>>>
* <<<conf/archiva.xml>>> in the Archiva installation
* If <<<~/.m2/archiva.xml>>> exists, it is saved there
- * Otherwise, it is saved to <<<$APP_BASE/conf/archiva.xml>>>, regardless of whether it previously existed.
+ * Otherwise, it is saved to <<<$ARCHIVA_BASE/conf/archiva.xml>>>, regardless of whether it previously existed.
The configuration will never be saved in the Archiva installation directory if you are using a separate base directory.
</property>
<property>
<name>wrapper.logfile</name>
- <value>%APP_BASE%/logs/wrapper.log</value>
+ <value>%ARCHIVA_BASE%/logs/wrapper.log</value>
</property>
<property>
<name>wrapper.app.parameter.2</name>
- <value>%APP_BASE%/conf/jetty.xml</value>
+ <value>%ARCHIVA_BASE%/conf/jetty.xml</value>
</property>
<property>
<name>wrapper.app.parameter.3</name>
- <value>%APP_BASE%/conf/jetty-logging.xml</value>
+ <value>%ARCHIVA_BASE%/conf/jetty-logging.xml</value>
+ </property>
+ <property>
+ <name>app.base.envvar</name>
+ <value>ARCHIVA_BASE</value>
</property>
</configuration>
</generatorConfiguration>
<jvmSettings>
<systemProperties>
<systemProperty>appserver.home=.</systemProperty>
- <systemProperty>appserver.base=%APP_BASE%</systemProperty>
- <!-- can't set this at present, it moves the databases if APP_BASE is not set
- <systemProperty>derby.system.home=%APP_BASE%/logs</systemProperty>
+ <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty>
+ <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set
+ <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty>
-->
- <systemProperty>jetty.logs=%APP_BASE%/logs</systemProperty>
+ <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
</systemProperties>
</jvmSettings>
</daemon>