If I have a simple prototype pom.xml that has an <issueManagement> section
templated out like such:

    <issueManagement>
      <system>CollabNet</system>
      <url>https://${my.projectName}.dev.java.net/servlets/Issues</url>
    </issueManagement>

Why doesn't "mvn archetype:create ... -Dmy.projectName=new-project"
correctly substitute the template parameter?  What is the correct method to
inject custom archetype parameters?

The archetype trace shows:
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 7,column 9] :
${my.projectName} is not a valid reference.

There were several questions around this topic, but the answers were not
specific as to the resolution.


Jeff
-- 
View this message in context: 
http://www.nabble.com/Custom-archetype-parameters-for-the-prototype-pom.xml-tf4474881s177.html#a12758766
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to