diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java index b150d371e0..df37f9afd0 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java @@ -598,7 +598,12 @@ public class DefaultLifecycleExecutor { Xpp3Dom e = new Xpp3Dom( ce.getName() ); e.setValue( ce.getValue( null ) ); - dom.addChild( e ); + String defaultValue = ce.getAttribute( "default-value", null ); + if ( defaultValue != null ) + { + e.setAttribute( "default-value", defaultValue ); + } + dom.addChild( e ); } }