From 0dbb8eeda8441f0810427f0e6707633f3f79ea74 Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Wed, 7 Sep 2005 12:29:48 +0000 Subject: [PATCH] Add packaging in clone method. There are some other fields that don't have cloned git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@279308 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/maven/project/ModelUtils.java | 1 + 1 file changed, 1 insertion(+) 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;