diff --git a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationConfigurator.java b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationConfigurator.java index 186700b5..4e1caf07 100644 --- a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationConfigurator.java +++ b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationConfigurator.java @@ -53,6 +53,7 @@ import org.apache.velocity.runtime.RuntimeServices; import org.apache.velocity.runtime.RuntimeSingleton; import org.apache.velocity.runtime.parser.ParseException; +import org.apache.velocity.runtime.parser.node.ASTNegateNode; import org.apache.velocity.runtime.parser.node.ASTReference; import org.apache.velocity.runtime.parser.node.SimpleNode; import org.apache.velocity.runtime.visitor.BaseVisitor; @@ -346,6 +347,11 @@ public Object visit(ASTReference node, Object data) { referencedPropertyNames.add(node.getRootString()); return super.visit(node, data); } + + @Override + public Object visit(ASTNegateNode astNegateNode, Object data) { + return astNegateNode.childrenAccept(this, data); + } }, velocityRuntime); } catch (ParseException e) { diff --git a/pom.xml b/pom.xml index daf95e7a..2141d72d 100644 --- a/pom.xml +++ b/pom.xml @@ -179,7 +179,7 @@ org.apache.velocity velocity-engine-core - 2.3 + 2.4 commons-collections