You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/09 09:52:21 UTC
[jira] [Commented] (ARCHETYPE-494) Provide a way to change the
generated project after archetype:generate execution
[ https://issues.apache.org/jira/browse/ARCHETYPE-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322268#comment-15322268 ]
ASF GitHub Bot commented on ARCHETYPE-494:
------------------------------------------
Github user ptahchiev commented on the issue:
https://github.com/apache/maven-archetype/pull/9
Hello,
I think what you are asking is in the context of this issue:
https://issues.apache.org/jira/browse/ARCHETYPE-494
I have it already implemented and will be included in the next version of the maven archetype plugin. There you can specify a groovy file, which will be executed after the archetype generation. I personally use this groovy file to do something similar: I read properties from the command line and then remove declared dependencies, classes and jsp files which the user might not need.
Please let me know if that helps so I can close this pull request.
> Provide a way to change the generated project after archetype:generate execution
> --------------------------------------------------------------------------------
>
> Key: ARCHETYPE-494
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-494
> Project: Maven Archetype
> Issue Type: New Feature
> Affects Versions: 2.4
> Reporter: Petar Tahchiev
> Assignee: Petar Tahchiev
> Fix For: 2.5
>
>
> It would be a nice enhancement to be able to modify the created project after {{archetype:generate}} execution (create/update/delete files, update dependencies in pom.xml, etc).
> The way I see it this can be achieved by providing a special script that will be executed every time a project is generated from the archetype.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)