Hello everyone I am new to the maven archetype programming but I ran instantly into a problem.

I have a custom archetype which should generate some java code
the java file has something like public static String ${myvar}

and I try to generate the code from the artefact via mvn archetype:create .... -Dmyvar=myValue

but maven then complains:

org.apache.velocity.ReferenceException ${myvar} is not a valid reference.
The funny thin is that the standard parameters are passed down correctly such as artifactId or groupId
so something like public static String ${groupId}
is resolved correctly.

Does anyone know how to resolve this how to pass down custom parameters
which then later are picked up internally by veclocity?


Werner


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to