Geirgp had said:
geirgp wrote: > > > I am in the process of creating an archetype to serve as a project > template > for our organization. I have not worked with archetypes before and I am > finding it a struggle to find documentation and good examples/tutorials. > Googling various combinations of "maven", "archetype", "velocity" mainly > results in simple articles on how to use already existing archetypes. > > I found something I thought should be mentioned here, in regards to using Velocity templates within Maven archetypes, some helpful info from our friend Raphaël[1]: Raphaël wrote: > > > velocity templates used in archetypes are just plain text files with VTL > http://velocity.apache.org/engine/releases/velocity-1.4/vtl-reference-guide.html > > Hope this helps. > > As documentation about Velocity, http://velocity.apache.org/engine/releases/velocity-1.4/user-guide.html is also available, might seve as an introduction to Velocity. My question: Are all files within Maven archetype JARs interpreted as velocity templates? Given the syntax of Velocity templates, in how it resembles shell-script syntax in some ways, I wonder if there will be any issues with including shell scripts in archetype JARs. (In saying so, I'm jumping to the conclusion that all archetypes packages would be distributed as JARs. Looking at maven-archetype-quickstart it looks like that's a safe jump. If it's not, c'est la vie, or how they say it.) -- Sean Footnotes: [1] http://www.mail-archive.com/[email protected]/msg79349.html -- View this message in context: http://n2.nabble.com/Creating-custom-archetypes-tp1092769p1213141.html Sent from the maven users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
