o Reverted r806709, it is the very purpose of this method to be independent of the role implemented by a mojo

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@806850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-22 13:17:35 +00:00
parent 79d66f164c
commit 0acb96af27
1 changed files with 1 additions and 2 deletions

View File

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