First, the create goal has been deprecated, you can better use the generate goal.
Second, the documentation[1] says that it runs the "generate-sources" before executing, so maybe it is possible to add your own plugin there. Unfortunately, I don't know how it can be done and I can't find any documentation or examples. Can someone more knowledgeable share his insights? [1] http://maven.apache.org/plugins/maven-archetype-plugin/generate-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Tue, Feb 24, 2009 at 10:47 AM, Sagara Gunathunga <sagar...@gmail.com> wrote: > Hi all > > AFAIK when execute "archetype:create" command , the archetype copy the > folder structure with resources according to the archetype's > archetype.xml file . I want to execute a custom Java method in > addition to above default behaviour along with "archetype:create" > command . Is there any way to achieve this ....? if so please update > me with some references . > > > > Thanks , > > > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://sagaras.awardspace.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org