mirror of https://github.com/apache/maven.git
Resolving: MNG-652
o Adding it1012 that should express the throwing of LifecycleExecutionException for unknown packaging. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@232189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ddf74d6ad5
commit
cb41f94717
|
@ -0,0 +1 @@
|
|||
package
|
|
@ -0,0 +1,7 @@
|
|||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.maven.it</groupId>
|
||||
<artifactId>maven-it1012</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>this-doesnt-exist</packaging>
|
||||
</project>
|
|
@ -615,12 +615,7 @@ private Map findMappingsForLifecycle( MavenSession session, MavenProject project
|
|||
}
|
||||
catch ( ComponentLookupException e )
|
||||
{
|
||||
getLogger().warn(
|
||||
"Lifecycle mappings not found for packaging: \'" + packaging + "\'. Using defaults." );
|
||||
|
||||
getLogger().debug( "Lifecycle mappings not found for packaging: \'" + packaging + "\'.", e );
|
||||
|
||||
return defaultPhases;
|
||||
throw new LifecycleExecutionException( "Cannot find lifecycle mapping for packaging: \'" + packaging + "\'.", e );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue