Adding code to verify that parent-model's packaging == pom inside the assembleLineage() method.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@345299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-11-17 18:28:12 +00:00
parent df43187e32
commit e4af55175e
1 changed files with 5 additions and 0 deletions

View File

@ -969,6 +969,11 @@ public class DefaultMavenProjectBuilder
model = findModelFromRepository( parentArtifact, remoteRepositories, localRepository, false );
}
if ( model != null && !"pom".equals( model.getPackaging() ) )
{
throw new ProjectBuildingException( projectId, "Project's parent has wrong packaging: " + model.getPackaging() + ". Must be 'pom'." );
}
File parentProjectDir = null;
if ( parentDescriptor != null )
{