[ http://jira.codehaus.org/browse/ARCHETYPE-33?page=comments#action_70521 ] Andrew Perepelytsya commented on ARCHETYPE-33: ----------------------------------------------
This contribution is exactly what I was struggling for a while. The current m2 templating mechanism is weak, as it targets poms mostly, not project artifacts. This new template worked well for me. The following 2 minor notes (which do not affect the contribution code, however): * JBI component artifact's pom declares a dependency on the parent (one of bobber ones). This is not required to run the sample, just comment it out. * There are minor typos in {{jbi.xml}} Velocity template (jbi.vm), namely missing dot after a package placeholder, slash in a package name (while others are dots). This is just a template tweak, so if anyone tries this, that's not the fault of the plugin, but just a simple VM file :) I would really love this one to be put eventually under standard maven-plugins groupId so there's no need to fully qualify the archetype name. And, if possible, target the inclusion for Maven 2.0.5 :) > Better Archetype template processing support > -------------------------------------------- > > Key: ARCHETYPE-33 > URL: http://jira.codehaus.org/browse/ARCHETYPE-33 > Project: Maven Archetype > Issue Type: Improvement > Reporter: Aaron Anderson > Assigned To: Jason van Zyl > Priority: Trivial > Attachments: new-archetype.zip > > > I really love the maven 2 archetype concept and have developed an enhanced > version that utilizes the velocity templating engine to a greater degree. > While the code is fully functionality it needs to be cleaned up and the > documentation enhanced. Please feel to incorporate any part of this back into > maven 2 if any of it is appealing. If desired I could also enhance the code > to make it a better contribution as well. > To test out the archetype functionallity, run mvn install in both archetype > (new plugin) and jbi-component (sample archetype) > to execute the new archetype, run > C:\temp\maventest> mvn > com.javaforge.bobber:bobber-archetype:1.0-SNAPSHOT:create > -DarchetypeGroupId=com.javaforge.bobber > -DarchetypeArtifactId=maven-archetype-jbi-component > -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.newarchetype -DartifactId=test > in the same way the default archeype functionality works. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira