Details
Description
The following works:
$> mvn archetype:generate -DarchetypeCatalog=local -Dgoals=antrun:run
But this has some major disadvantages:
- The configuration of the goal has to be defined in the final POM of the new project
- The user using the archetype has to know about the additional parameter
It would be a big imovement if the a creator of an archetype could define some additional goals to be executed after the creation of the new project. THe documentation for 'generate' tells this about the 'goals' parameter: 'Additional goals that can be specified by the user during the creation of the archetype'. But it does not tell how the creator could define additonal goals.
Activity
Herve Boutemy
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Summary | genrate goal to execute additional goals from archetype pom | generate goal to execute additional goals from archetype pom |
Herve Boutemy
made changes -
| Fix Version/s | 2.x [ 17632 ] | |
| Affects Version/s | 2.0 [ 14604 ] | |
| Affects Version/s | 2.0-alpha-4 [ 14253 ] | |
| Affects Version/s | 2.1 [ 16795 ] |
It would be very usefull, especially to run very nice goals like versions:update-parent or versions:use-latest-releases, It would keep from upgrading archetypes versions only to update other versions inside...Thanks