mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
8d339b01b8
commit
2c09099b78
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue