Hello all, I've been having this idea to modify the resulting project after generating from a given archetype. In my particular case I'd like to be able to delete certain files, modify the pom.xml to add/remove dependencies, etc. After speaking with Herve Boutemy he suggested it would be a nice addition to the maven archetype plugin to be able to run a script after the project is generated from an archetype. I filed the enhancement here:
https://issues.apache.org/jira/browse/ARCHETYPE-494 I've also implemented it in a separate branch here: https://git1-us-west.apache.org/repos/asf?p=maven-archetype.git;a=commit;h=d60b876506e9b60ffa115c63425f837793fcaacf The idea is very basic - if the archetype plugin finds a file called "post_create.groovy" in META-INF folder it will try to execute it, passing all the environment variables to it. I've also added a sample test-case. I'd really like if someone takes a look on it before I merge it. Please share your comments here. Thanks. -- Regards, Petar! Karlovo, Bulgaria. --- Public PGP Key at: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
