mirror of https://github.com/apache/maven.git
[MNG-7264] packaging plugins bindings cannot be empty
This commit is contained in:
parent
7180d68a18
commit
e617d51bd4
|
@ -43,7 +43,7 @@ public abstract class AbstractLifecycleMappingProvider
|
|||
{
|
||||
requireNonNull( pluginBindings );
|
||||
final int len = pluginBindings.length;
|
||||
if ( len < 1 || len % 2 != 0 )
|
||||
if ( len < 2 || len % 2 != 0 )
|
||||
{
|
||||
throw new IllegalArgumentException( "Plugin bindings must have more than 0, even count of elements" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue