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:
John Dennis Casey 2005-08-12 03:02:35 +00:00
parent ddf74d6ad5
commit cb41f94717
3 changed files with 9 additions and 6 deletions

View File

@ -0,0 +1 @@
package

View File

@ -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>

View File

@ -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 );
}
}