Bug 433953 - Remove support for Plexus IoC framework Tweaked Plexus demo to enable consumption of JSR-330 components
Project: http://git-wip-us.apache.org/repos/asf/maven-resolver/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-resolver/commit/c27ef36f Tree: http://git-wip-us.apache.org/repos/asf/maven-resolver/tree/c27ef36f Diff: http://git-wip-us.apache.org/repos/asf/maven-resolver/diff/c27ef36f Branch: refs/heads/master Commit: c27ef36f63c18cca3e742c7175a6959a647394a6 Parents: c901f56 Author: Benjamin Bentmann <bentm...@sonatype.com> Authored: Thu May 1 22:58:37 2014 +0200 Committer: Benjamin Bentmann <bentm...@sonatype.com> Committed: Thu May 1 22:58:37 2014 +0200 ---------------------------------------------------------------------- .../aether/examples/plexus/PlexusRepositorySystemFactory.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-resolver/blob/c27ef36f/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/plexus/PlexusRepositorySystemFactory.java ---------------------------------------------------------------------- diff --git a/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/plexus/PlexusRepositorySystemFactory.java b/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/plexus/PlexusRepositorySystemFactory.java index 7f8fd6e..5090160 100644 --- a/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/plexus/PlexusRepositorySystemFactory.java +++ b/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/plexus/PlexusRepositorySystemFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Sonatype, Inc. + * Copyright (c) 2010, 2014 Sonatype, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,6 +13,7 @@ package org.eclipse.aether.examples.plexus; import org.codehaus.plexus.ContainerConfiguration; import org.codehaus.plexus.DefaultContainerConfiguration; import org.codehaus.plexus.DefaultPlexusContainer; +import org.codehaus.plexus.PlexusConstants; import org.eclipse.aether.RepositorySystem; /** @@ -29,7 +30,9 @@ public class PlexusRepositorySystemFactory */ try { - ContainerConfiguration config = new DefaultContainerConfiguration().setAutoWiring( true ); + ContainerConfiguration config = new DefaultContainerConfiguration(); + config.setAutoWiring( true ); + config.setClassPathScanning( PlexusConstants.SCANNING_INDEX ); return new DefaultPlexusContainer( config ).lookup( RepositorySystem.class ); } catch ( Exception e )