MPLUGIN-102: restore previous functionality and add a deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@639782 13f79535-47bb-0310-9956-ffa450edef68master
parent
300e4c0c14
commit
cee8797a44
|
|
@ -104,7 +104,22 @@ public class DefaultMojoScanner
|
|||
|
||||
if ( numMojoDescriptors == 0 )
|
||||
{
|
||||
throw new InvalidPluginDescriptorException( "No mojo descriptors found in plugin." );
|
||||
//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("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,8 @@ public class DefaultMojoScannerTest
|
|||
try
|
||||
{
|
||||
scanner.populatePluginDescriptor( project, pluginDescriptor );
|
||||
fail( "Expected exception" );
|
||||
//MPLUGIN-102, revert this in the next version
|
||||
//fail( "Expected exception" );
|
||||
}
|
||||
catch (InvalidPluginDescriptorException e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue