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">
|
||||
<constructor-arg ref="jcr-config"/>
|
||||
</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}/jcr"/>
|
||||
</bean>
|
||||
|
||||
|
||||
</beans>
|
|
@ -60,7 +60,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.jackrabbit</groupId>
|
||||
<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 -->
|
||||
<exclusions>
|
||||
<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
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
@ -43,7 +43,7 @@ public class ArchivaJcrRepositoryConfig
|
|||
File configurationFile = new File( file );
|
||||
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(
|
||||
"no repository.xml file in path {} so use default from resources path {}", file, resourcePath );
|
||||
// use bundled repository.xml
|
|
@ -30,4 +30,6 @@
|
|||
<context:annotation-config/>
|
||||
<context:component-scan base-package="org.apache.archiva.metadata.repository.jcr"/>
|
||||
|
||||
|
||||
|
||||
</beans>
|
Loading…
Reference in New Issue