[MNG-4162] all mojo (even report mojo) have the same/unique role : Mojo.ROLE

Issue id: 4162


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@806709 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2009-08-21 20:35:41 +00:00
parent 4f49a5c76e
commit 79d66f164c
1 changed files with 2 additions and 1 deletions

View File

@ -462,7 +462,8 @@ public class DefaultMavenPluginManager
try
{
mojo = container.lookup( mojoInterface, mojoDescriptor.getRoleHint() );
// currently all mojo even reportMojo have the same role Mojo.ROLE
mojo = (T) container.lookup( Mojo.ROLE, mojoDescriptor.getRoleHint() );
}
catch ( ComponentLookupException e )
{