Leszek Gawron wrote:
Giacomo Pati wrote:
I've checked it. The generated pom look as expected.

[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/pom.xml [line 21,column 16] : $Id is not a valid 
reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/pom.xml [line 72,column 34] : ${pom.artifactId} 
is not a valid reference.
[INFO] ********************* End of debug info from resources from generated 
POM ***********************
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = archetype-resources/src/main/resources/COB-INF/demo.js [line 
18,column 13] : $Id is not a valid reference.

The above warning is correct as the archetype doesn't have a reference to pom.artifactId. You have to differentiate between the generation step and builds that are performed _after_ the project has been created. For those the ${pom.artifactId} expression does work.

--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------




        
                
___________________________________________________________ Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

Reply via email to