diff options
author | Jesse McConnell <jmcconnell@apache.org> | 2007-04-13 15:32:51 +0000 |
---|---|---|
committer | Jesse McConnell <jmcconnell@apache.org> | 2007-04-13 15:32:51 +0000 |
commit | c440e1e291ad593d1821b64b07289be86c5bc68a (patch) | |
tree | a636d2ab91fe6cc6c4b6b58cb6795d3f59f5107d /archiva-cli | |
parent | e970003cf5b624784bb2fbfebe259da3aa01574e (diff) | |
download | archiva-c440e1e291ad593d1821b64b07289be86c5bc68a.tar.gz archiva-c440e1e291ad593d1821b64b07289be86c5bc68a.zip |
working archiva-ali again
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@528525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/pom.xml | 11 | ||||
-rw-r--r-- | archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java | 4 | ||||
-rw-r--r-- | archiva-cli/src/main/resources/META-INF/plexus/components.xml | 98 |
3 files changed, 52 insertions, 61 deletions
diff --git a/archiva-cli/pom.xml b/archiva-cli/pom.xml index ded6638b0..c6397dc0a 100644 --- a/archiva-cli/pom.xml +++ b/archiva-cli/pom.xml @@ -41,14 +41,6 @@ <artifactId>archiva-core-consumers</artifactId> </dependency> <dependency> - <groupId>org.apache.maven.archiva</groupId> - <artifactId>archiva-database-consumers</artifactId> - </dependency> - <dependency> - <groupId>org.apache.maven.archiva</groupId> - <artifactId>archiva-lucene-consumers</artifactId> - </dependency> - <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-digest</artifactId> </dependency> @@ -93,7 +85,8 @@ <plugin> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-maven-plugin</artifactId> - <executions> + <version>1.3.5</version> + <executions> <execution> <id>merge</id> <goals> diff --git a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java index ae4e87826..e69189d2f 100644 --- a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ArchivaCli.java +++ b/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-cli/src/main/resources/META-INF/plexus/components.xml b/archiva-cli/src/main/resources/META-INF/plexus/components.xml index 6873d9f8f..ad355c655 100644 --- a/archiva-cli/src/main/resources/META-INF/plexus/components.xml +++ b/archiva-cli/src/main/resources/META-INF/plexus/components.xml @@ -1,52 +1,50 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- - ~ 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. - --> - -<components> - <component> - <role>org.codehaus.plexus.registry.Registry</role> - <implementation> - org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry - </implementation> - <role-hint>commons-configuration</role-hint> - <configuration> - <properties> - <system /> - <xml fileName="${user.home}/.m2/archiva.xml" - config-optional="true" - config-name="org.apache.maven.archiva.user" - config-at="org.apache.maven.archiva" /> - <xml fileName="${user.home}/.m2/shared.xml" - config-optional="true" - config-name="org.apache.maven.shared.app.user" - config-at="org.apache.maven.shared.app" - config-forceCreate="true" /> - <properties fileName="${user.home}/.m2/security.properties" - config-optional="true" - config-at="org.codehaus.plexus.security" /> - <properties fileName="${user.home}/.m2/archiva.properties" - config-optional="true" - config-at="org.codehaus.plexus.security" /> - <xml fileName="org/apache/maven/archiva/configuration/default-archiva.xml" - config-optional="true" - config-at="org.apache.maven.archiva"/> - </properties> - </configuration> - </component> -</components> + ~ 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. +--> +<component-set> + <components> + <component> + <role>org.codehaus.plexus.registry.Registry</role> + <implementation> + org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry + </implementation> + <role-hint>commons-configuration</role-hint> + <configuration> + <properties> + <system /> + <xml fileName="${appserver.base}/conf/archiva.xml" + config-optional="true" + config-name="org.apache.maven.archiva.base" + config-at="org.apache.maven.archiva" /> + <xml fileName="${appserver.home}/conf/archiva.xml" + config-optional="true" + config-at="org.apache.maven.archiva" /> + <xml fileName="${user.home}/.m2/archiva.xml" + config-optional="true" + config-name="org.apache.maven.archiva.user" + config-at="org.apache.maven.archiva" /> + <xml + fileName="org/apache/maven/archiva/configuration/default-archiva.xml" + config-optional="true" + config-at="org.apache.maven.archiva" /> + </properties> + </configuration> + </component> + </components> +</component-set>
\ No newline at end of file |