maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JavaGeek <>
Subject How can I pass properties to an Archetype POM in archetype-resources?
Date Sat, 07 Nov 2009 03:08:02 GMT

I volunteered to help the Weld team create some JSR 299 archetypes.  There
are going to be 4 or more archetypes that will have the same dependency
versions, sometimes at different scopes.  I'd like to define properties in
the archetype's parent POM and pass them to the poms in the
archetype-resources folder.  

For example, I'd like to be able to define the property below in the parent

and in src/main/resources/archetype-resources/pom.xml define:


However, ${jsf.version} doesn't resolve, I get:
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 57,column 34] :
${jsf.version} is not a valid reference.

...and the generated project doesn't build for obvious reasons.

How can I pass a property to the
src/main/resources/archetype-resources/pom.xml ?

Thanks in Advance,
View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message