diff --git a/maven-project/src/main/java/org/apache/maven/project/ModelUtils.java b/maven-project/src/main/java/org/apache/maven/project/ModelUtils.java index 75c07a7602..6994adcdee 100644 --- a/maven-project/src/main/java/org/apache/maven/project/ModelUtils.java +++ b/maven-project/src/main/java/org/apache/maven/project/ModelUtils.java @@ -466,6 +466,7 @@ public final class ModelUtils newModel.setVersion( model.getVersion() ); newModel.setArtifactId( model.getArtifactId() ); newModel.setGroupId( model.getGroupId() ); + newModel.setPackaging( model.getPackaging() ); newModel.setModules( cloneModules( model.getModules() ) ); assembler.copyModel( newModel, model ); return newModel;