From 2c09099b78ebf5071803ae242175ffd0d174dedc Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sun, 14 Nov 2004 07:13:05 +0000 Subject: [PATCH] o in the contextualize method where we are getting a reference to the container but we only need the basis PlexusContainer. The only place we need the artifact enabled container is in the addPlugin method. Otherwise, in standard PlexusTestCases we will get a ClassCastException. You do not need to use an ArtifactEnabledTestCase unless you actually want to use the facilities of the artifact enabled container. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163234 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/maven/plugin/DefaultPluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java index bc1acc02a8..c7c9a8975b 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java @@ -218,7 +218,7 @@ public class DefaultPluginManager public void contextualize( Context context ) throws ContextException { - container = (ArtifactEnabledContainer) context.get( PlexusConstants.PLEXUS_KEY ); + container = (PlexusContainer) context.get( PlexusConstants.PLEXUS_KEY ); } public void initialize()