From 621a98296ff6fb128f07a7670401a24a3c09e398 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 5 Oct 2011 16:44:02 +0000 Subject: [PATCH] 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 --- .../src/main/resources/META-INF/spring-context.xml | 4 +++- archiva-modules/plugins/metadata-store-jcr/pom.xml | 2 +- .../metadata/repository/jcr}/ArchivaJcrRepositoryConfig.java | 4 ++-- .../src/main/resources/META-INF/spring-context.xml | 2 ++ .../apache/archiva/metadata/repository/jcr}/repository.xml | 0 5 files changed, 8 insertions(+), 4 deletions(-) rename archiva-modules/{archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/startup => plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr}/ArchivaJcrRepositoryConfig.java (92%) rename archiva-modules/{archiva-web/archiva-webapp/src/main/resources/org/apache/archiva => plugins/metadata-store-jcr/src/main/resources/org/apache/archiva/metadata/repository/jcr}/repository.xml (100%) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml index 13ffc0015..633a11516 100755 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml @@ -38,9 +38,11 @@ - + + + \ No newline at end of file diff --git a/archiva-modules/plugins/metadata-store-jcr/pom.xml b/archiva-modules/plugins/metadata-store-jcr/pom.xml index b4138bf71..347af4203 100644 --- a/archiva-modules/plugins/metadata-store-jcr/pom.xml +++ b/archiva-modules/plugins/metadata-store-jcr/pom.xml @@ -60,7 +60,7 @@ org.apache.jackrabbit jackrabbit-core - test + provided diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/startup/ArchivaJcrRepositoryConfig.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/ArchivaJcrRepositoryConfig.java similarity index 92% rename from archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/startup/ArchivaJcrRepositoryConfig.java rename to archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/ArchivaJcrRepositoryConfig.java index 54bc98ba1..e6e5740c4 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/startup/ArchivaJcrRepositoryConfig.java +++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/ArchivaJcrRepositoryConfig.java @@ -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 diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/resources/META-INF/spring-context.xml b/archiva-modules/plugins/metadata-store-jcr/src/main/resources/META-INF/spring-context.xml index 878017083..fd2e154b5 100644 --- a/archiva-modules/plugins/metadata-store-jcr/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/plugins/metadata-store-jcr/src/main/resources/META-INF/spring-context.xml @@ -30,4 +30,6 @@ + + \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/org/apache/archiva/repository.xml b/archiva-modules/plugins/metadata-store-jcr/src/main/resources/org/apache/archiva/metadata/repository/jcr/repository.xml similarity index 100% rename from archiva-modules/archiva-web/archiva-webapp/src/main/resources/org/apache/archiva/repository.xml rename to archiva-modules/plugins/metadata-store-jcr/src/main/resources/org/apache/archiva/metadata/repository/jcr/repository.xml -- 2.39.5