archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: Change configuration file by default location ~/.m2/archiva.xml
Date Thu, 06 Oct 2011 02:11:57 GMT
On 30/09/2011, at 2:07 PM, Chandrasekaran G (RBEI/ETT4) wrote:

> Hi,
> 
> 1. I couldn't find ${appserver.base}/conf/ path

This means you can set the system property before starting your server, an example is in the
Tomcat instructions on the website.

e.g.: -Dappserver.base=/var/local/archiva

Then you can put all the config in /var/local/archiva/conf

> 2. there is no option inWEB-INF/applicationContext.xml file to change the location

You might need to check again, it is there. Look at the sub elements of:

  <bean name="commons-configuration" class="org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry">
    <property name="properties">
…          
      <xml fileName="${user.home}/.m2/archiva.xml" config-optional="true"
               config-name="org.apache.archiva.user"
               config-at="org.apache.archiva"/>

- Brett

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter





Mime
View raw message