mirror of https://github.com/apache/archiva.git
move jcr related classes to store-jcr module
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1179311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3ed9b80b38
commit
621a98296f
|
@ -38,9 +38,11 @@
|
||||||
<bean id="jcr-repository" class="org.apache.jackrabbit.core.RepositoryImpl" destroy-method="shutdown" lazy-init="true">
|
<bean id="jcr-repository" class="org.apache.jackrabbit.core.RepositoryImpl" destroy-method="shutdown" lazy-init="true">
|
||||||
<constructor-arg ref="jcr-config"/>
|
<constructor-arg ref="jcr-config"/>
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jcr-config" class="org.apache.archiva.web.startup.ArchivaJcrRepositoryConfig" factory-method="create">
|
|
||||||
|
<bean id="jcr-config" class="org.apache.archiva.metadata.repository.jcr.ArchivaJcrRepositoryConfig" factory-method="create">
|
||||||
<constructor-arg value="${appserver.base}/conf/repository.xml"/>
|
<constructor-arg value="${appserver.base}/conf/repository.xml"/>
|
||||||
<constructor-arg value="${appserver.base}/jcr"/>
|
<constructor-arg value="${appserver.base}/jcr"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -60,7 +60,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.jackrabbit</groupId>
|
<groupId>org.apache.jackrabbit</groupId>
|
||||||
<artifactId>jackrabbit-core</artifactId>
|
<artifactId>jackrabbit-core</artifactId>
|
||||||
<scope>test</scope>
|
<scope>provided</scope>
|
||||||
<!-- could trim more, but since it's just for test we don't need to worry -->
|
<!-- could trim more, but since it's just for test we don't need to worry -->
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.web.startup;
|
package org.apache.archiva.metadata.repository.jcr;
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
@ -43,7 +43,7 @@ public class ArchivaJcrRepositoryConfig
|
||||||
File configurationFile = new File( file );
|
File configurationFile = new File( file );
|
||||||
if ( !configurationFile.exists( ) )
|
if ( !configurationFile.exists( ) )
|
||||||
{
|
{
|
||||||
String resourcePath = "org/apache/archiva/repository.xml";
|
String resourcePath = "org/apache/archiva/metadata/repository/jcr/repository.xml";
|
||||||
LoggerFactory.getLogger( ArchivaJcrRepositoryConfig.class ).info(
|
LoggerFactory.getLogger( ArchivaJcrRepositoryConfig.class ).info(
|
||||||
"no repository.xml file in path {} so use default from resources path {}", file, resourcePath );
|
"no repository.xml file in path {} so use default from resources path {}", file, resourcePath );
|
||||||
// use bundled repository.xml
|
// use bundled repository.xml
|
|
@ -30,4 +30,6 @@
|
||||||
<context:annotation-config/>
|
<context:annotation-config/>
|
||||||
<context:component-scan base-package="org.apache.archiva.metadata.repository.jcr"/>
|
<context:component-scan base-package="org.apache.archiva.metadata.repository.jcr"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</beans>
|
</beans>
|
Loading…
Reference in New Issue