I'm looking for a way, to execute additional commands (e.g. a perl script) after running mvn archetype:generate on my custom archetype automatically.
Is this possible?
Context
I'm writing an archetype, that creates OSGi bundles which i want to integrate into a parent project as modules. After generating the bundle, i wish to organise it into the parents directory structure and then manipulate poms and other configuration files automatically.
This has been asked on maven forums before 1, however no answer was given.
Runtime.getRuntime().exec()
? – Peacoatexec
call in the main goal, after doing whatever Java-native steps you're doing? – Peacoatgenerate
. Why don't you include theexec
call in that code? Is there something that you need to happen after your main archetype code runs but before other goals? – Peacoat