[ 
https://issues.apache.org/jira/browse/SLING-6203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921328#comment-16921328
 ] 

Robert Munteanu edited comment on SLING-6203 at 9/3/19 10:46 AM:
-----------------------------------------------------------------

[~schaefa] - I looked around for information around customising generated 
archetypes and I found 
http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html#Post-generation_script
 . Apparently it would allow us to basically do anything before completing the 
generate operation.

I was thinking that we could have multiple modes (just a sketch):

- generate project ( reactor + modules )
- generate project with examples
- generate single module ( core/content.ui/content.apps/etc )

When generating a single module we would basically delete all unneeded stuff ( 
reactor pom + other modules ) and move the generated module to the top-level 
directory.

Do you think that would work? And do you think we can make it in way which does 
not make the current project-archetype too complicated?


was (Author: rombert):
[~schaefa] - I looked around for information around customising generated 
archetypes and I found 
http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html#Post-generation_script
 . Apparently it would allow us to basically do anything before completing the 
generate operation.

I was thinking that we could have multiple modes (just a sketch):

- generate project ( reactor + modules )
- generate project with examples
- generate single module ( core/content.ui/content.apps/etc )

Do you think that would work? And do you think we can make it in way which does 
not make the current project-archetype too complicated?

> Create a Maven archetype for content packages
> ---------------------------------------------
>
>                 Key: SLING-6203
>                 URL: https://issues.apache.org/jira/browse/SLING-6203
>             Project: Sling
>          Issue Type: Sub-task
>          Components: General
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to