mirror of https://github.com/apache/maven.git
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:
parent
df43187e32
commit
e4af55175e
|
@ -969,6 +969,11 @@ public class DefaultMavenProjectBuilder
|
||||||
model = findModelFromRepository( parentArtifact, remoteRepositories, localRepository, false );
|
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;
|
File parentProjectDir = null;
|
||||||
if ( parentDescriptor != null )
|
if ( parentDescriptor != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue