You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jtonic <an...@gmail.com> on 2018/07/03 05:05:56 UTC

Re: archetype:create-from-project and excluding files from to-be-created archetype

Hi,

I can't tell if the feature request has been implemented or not, but for me
the only way of achieving some sort of archetype generation customisation is
by using the *post generate processing groovy script*.
It's obvious this is not the straightforward way of ignoring some
folders/files during the generation of the archetype from the existing
project, but allows the archetype authors to avoid manual intervention after
the run of the mvn archetype:create-from-project.
Further information about the post generation processing groovy script can
be found at 
generate-from-project
<https://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html>  
and an example at
https://github.com/attivio/archetypes/blob/develop/attivio-archetype-client/src/main/resources/META-INF/archetype-post-generate.groovy

Considering groovy is an amazing language especially for this kind of jobs,
I would highly urge anyone developing maven archetype to get accustomed with
it.

Kind regards,




--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org