mirror of https://github.com/apache/archiva.git
don't write configuration to ~/.m2/archiva.xml
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1162658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
66d063c736
commit
a2ca0a36fb
|
@ -213,6 +213,7 @@
|
|||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<plexus.home>${project.build.outputDirectory}</plexus.home>
|
||||
<appserver.base>${basedir}/target/appserver-base</appserver.base>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -34,4 +34,26 @@
|
|||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- wire up more basic configuration so it doesn't overwrite any config files -->
|
||||
<bean name="archivaConfiguration#default" class="org.apache.maven.archiva.configuration.DefaultArchivaConfiguration">
|
||||
<property name="registry" ref="registry#default"/>
|
||||
</bean>
|
||||
|
||||
<alias name="archivaConfiguration#default" alias="archivaConfiguration"/>
|
||||
|
||||
<bean name="registry#default" class="org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry">
|
||||
<property name="properties">
|
||||
<value>
|
||||
<![CDATA[
|
||||
<configuration>
|
||||
<system/>
|
||||
<xml fileName="${appserver.base}/conf/archiva.xml" config-forceCreate="true"
|
||||
config-optional="true"
|
||||
config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
|
||||
</configuration>
|
||||
]]>
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
Loading…
Reference in New Issue