[MPLUGIN-106] Throw an exception when no mojo defs found for a plugin, instead of merely warning about it.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746379 13f79535-47bb-0310-9956-ffa450edef68master
parent
d488f9c649
commit
b38d62494f
|
|
@ -122,26 +122,8 @@ public class DefaultMojoScanner
|
|||
|
||||
if ( numMojoDescriptors == 0 )
|
||||
{
|
||||
// MPLUGIN-102. Restore the old functionality and allow a deprecation period
|
||||
// throw new InvalidPluginDescriptorException( "No mojo descriptors were found in this project." );
|
||||
for ( int i = 0; i < 10; i++ )
|
||||
{
|
||||
logger.warn( "" );
|
||||
}
|
||||
|
||||
logger.warn( "*******************************************************" );
|
||||
logger.warn( "Deprecation Alert:" );
|
||||
logger.warn( "No mojo descriptors were found in this project which has a packaging type of "
|
||||
+ "maven-plugin." );
|
||||
logger.warn( "In future versions of the plugin tools, this will fail the build." );
|
||||
logger.warn( "If this project is an archetype, change the packaging type from maven-plugin to "
|
||||
+ "maven-archetype." );
|
||||
logger.warn( "********************************************************" );
|
||||
|
||||
for ( int i = 0; i < 10; i++ )
|
||||
{
|
||||
logger.warn( "" );
|
||||
}
|
||||
throw new InvalidPluginDescriptorException( "No mojo definitions were found for plugin: "
|
||||
+ request.getPluginDescriptor().getPluginLookupKey() + "." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue