mirror of https://github.com/apache/maven.git
Throw illegal argument, not NPE.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1f8050277
commit
7b974639d5
|
@ -749,7 +749,7 @@ public class DefaultWagonManager
|
|||
id = repository.getId();
|
||||
}
|
||||
|
||||
getLogger().info( "Using mirror: " + mirror.getId() + " for repository: " + repository.getId() + "\n(mirror url: " + mirror.getUrl() + ")" );
|
||||
getLogger().debug( "Using mirror: " + mirror.getId() + " for repository: " + repository.getId() + "\n(mirror url: " + mirror.getUrl() + ")" );
|
||||
repository = repositoryFactory.createArtifactRepository( id, mirror.getUrl(),
|
||||
repository.getLayout(), repository.getSnapshots(),
|
||||
repository.getReleases() );
|
||||
|
|
|
@ -35,6 +35,11 @@ public class LegacyLifecycleMappingParser
|
|||
public LifecycleBindings parseDefaultMappings( final List lifecycles )
|
||||
throws LifecycleSpecificationException
|
||||
{
|
||||
if( lifecycles == null )
|
||||
{
|
||||
throw new IllegalArgumentException("lifecycles: null");
|
||||
}
|
||||
|
||||
LifecycleBindings bindings = new LifecycleBindings();
|
||||
|
||||
bindings.setPackaging( "unmatched" );
|
||||
|
|
Loading…
Reference in New Issue