diff --git a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java index 0c487e5039..b745ec19de 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java @@ -142,7 +142,14 @@ public class PluginParameterExpressionEvaluator } // Was not an expression - return expression.replaceAll( "\\$\\$", "$" ); + if ( expression.indexOf( "$$" ) > -1 ) + { + return expression.replaceAll( "\\$\\$", "\\$" ); + } + else + { + return expression; + } } MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();