I create a maven ischtype that generates a project with java classes.
The archetype has some user properties (requiredProperty in archetype-metadata.xml) According to the user's choice, some files will be useless (for example, database access classes if the user does not use the database), so I would like to delete them.
Is it possible to run a hookup script after generation?
Note: it would be even better not to include these files during generation if they are not needed, but I think it is impossible to declare some optional files correctly?
thanks
Loic
source share