From: Jesse McConnell Date: Fri, 13 Apr 2007 15:32:51 +0000 (+0000) Subject: working archiva-ali again X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a7d50bb3d4a46581bfa74a3a4b0d07eca9b5edde;p=archiva.git working archiva-ali again git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@528525 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ArchivaConfiguration.java b/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ArchivaConfiguration.java index a914ce712..a8034a847 100644 --- a/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ArchivaConfiguration.java +++ b/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ArchivaConfiguration.java @@ -27,6 +27,8 @@ import org.codehaus.plexus.registry.RegistryListener; */ public interface ArchivaConfiguration { + public static final String ROLE = ArchivaConfiguration.class.getName(); + /** * Get the configuration. * @@ -50,4 +52,6 @@ public interface ArchivaConfiguration * @param listener the listener */ void addChangeListener( RegistryListener listener ); + } + diff --git a/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java index ab64a661d..1b62c3f4b 100644 --- a/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java +++ b/archiva-jpox-database-refactor/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java @@ -33,7 +33,7 @@ import java.util.Iterator; /** * Implementation of configuration holder that retrieves it from the registry. * - * @plexus.component + * @plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration" */ public class DefaultArchivaConfiguration implements ArchivaConfiguration, RegistryListener, Initializable diff --git a/archiva-jpox-database-refactor/archiva-cli/pom.xml b/archiva-jpox-database-refactor/archiva-cli/pom.xml index ded6638b0..c6397dc0a 100644 --- a/archiva-jpox-database-refactor/archiva-cli/pom.xml +++ b/archiva-jpox-database-refactor/archiva-cli/pom.xml @@ -40,14 +40,6 @@ org.apache.maven.archiva archiva-core-consumers - - org.apache.maven.archiva - archiva-database-consumers - - - org.apache.maven.archiva - archiva-lucene-consumers - org.codehaus.plexus plexus-digest @@ -93,7 +85,8 @@ org.codehaus.plexus plexus-maven-plugin - + 1.3.5 + merge diff --git a/archiva-jpox-database-refactor/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java b/archiva-jpox-database-refactor/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java index ae4e87826..e69189d2f 100644 --- a/archiva-jpox-database-refactor/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java +++ b/archiva-jpox-database-refactor/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java @@ -298,8 +298,8 @@ public class ArchivaCli } private void dumpConfiguration( PlexusContainer plexus ) throws ComponentLookupException - { - archivaConfiguration = (ArchivaConfiguration) plexus.lookup( ArchivaConfiguration.ROLE ); + { + archivaConfiguration = (ArchivaConfiguration) plexus.lookup( ArchivaConfiguration.ROLE, "cli" ); System.out.println( "File Type Count: " + archivaConfiguration.getConfiguration().getRepositoryScanning().getFileTypes().size() ); } diff --git a/archiva-jpox-database-refactor/archiva-cli/src/main/resources/META-INF/plexus/components.xml b/archiva-jpox-database-refactor/archiva-cli/src/main/resources/META-INF/plexus/components.xml index 6873d9f8f..ad355c655 100644 --- a/archiva-jpox-database-refactor/archiva-cli/src/main/resources/META-INF/plexus/components.xml +++ b/archiva-jpox-database-refactor/archiva-cli/src/main/resources/META-INF/plexus/components.xml @@ -1,52 +1,50 @@ - - - - org.codehaus.plexus.registry.Registry - - org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry - - commons-configuration - - - - - - - - - - - - + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. +--> + + + + org.codehaus.plexus.registry.Registry + + org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry + + commons-configuration + + + + + + + + + + + + \ No newline at end of file diff --git a/archiva-jpox-database-refactor/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml b/archiva-jpox-database-refactor/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml index 701a4f3dd..a470eae16 100644 --- a/archiva-jpox-database-refactor/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml +++ b/archiva-jpox-database-refactor/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml @@ -50,7 +50,7 @@ - +