[GitHub] maven-archetype pull request: Add properties to enable or disable ...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] maven-archetype pull request: Add properties to enable or disable ...

Tcharl
GitHub user manouti opened a pull request:

    https://github.com/apache/maven-archetype/pull/9

    Add properties to enable or disable generation of submodules.

    By setting -DgenerateEnableProperties=true when calling the create-from-project goal, the plugin would create enabler properties for each child module in the form generate.module.X. When calling the generate goal thereafter, one can exclude a module by passing -Dgenerate.module.X=false.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/manouti/maven-archetype master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven-archetype/pull/9.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9
   
----
commit 4eef51a828dd78a03ff3444d52502cadcf0c2b39
Author: manouti <[hidden email]>
Date:   2016-01-25T22:01:16Z

    Update DefaultArchetypeFactory.java

commit 8a3d43a87fd593ca26dbec037f06682b7d5587e8
Author: manouti <[hidden email]>
Date:   2016-01-25T22:05:22Z

    Update DefaultFilesetArchetypeGenerator.java
   
    Add properties to enable/disable the generation of specific modules.

commit 38bea519c95bc194f03643c45e21502797418aaa
Author: manouti <[hidden email]>
Date:   2016-01-25T22:06:20Z

    Update FilesetArchetypeCreator.java
   
    Add properties to enable/disable the generation of specific modules.

commit 69ee6e450847761729290921b391d6cff9e7043e
Author: manouti <[hidden email]>
Date:   2016-01-25T22:10:10Z

    Update Constants.java
   
    Add properties to enable/disable the generation of specific modules.

commit a995f2930b751d1ef5d12e33b1319bf26d61bdeb
Author: manouti <[hidden email]>
Date:   2016-01-25T22:12:03Z

    Update CreateArchetypeFromProjectMojo.java
   
    Add properties to enable/disable the generation of specific modules.

commit 94f044e73b970fdad4ad0dcd6032d0eecfbb2da7
Author: manouti <[hidden email]>
Date:   2016-01-25T22:12:58Z

    Update ArchetypeCreationRequest.java
   
    Add properties to enable/disable the generation of specific modules.

commit 927d1c237c39629bcc5a66d0c809d462d5240a2d
Author: manouti <[hidden email]>
Date:   2016-01-25T22:16:26Z

    Update archetype-descriptor.mdo
   
    Add properties to enable/disable the generation of specific modules.

commit 275527431b5636e2793fa9110f3d8f4fb2745abc
Author: manouti <[hidden email]>
Date:   2016-01-25T22:22:38Z

    Merge pull request #1 from manouti/manouti-module-enabler
   
    Module enabler

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[GitHub] maven-archetype issue #9: Add properties to enable or disable generation of ...

Tcharl
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.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[GitHub] maven-archetype issue #9: Add properties to enable or disable generation of ...

Tcharl
In reply to this post by Tcharl
Github user manouti commented on the issue:

    https://github.com/apache/maven-archetype/pull/9
 
    Hello ptahchiev,
    Thanks for the response. Yes seems to target this requested feature. I'm fine if you would like to close this PR (I've linked to the Jira issue in the SO question).



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[GitHub] maven-archetype issue #9: Add properties to enable or disable generation of ...

Tcharl
In reply to this post by Tcharl
Github user timjonesdev commented on the issue:

    https://github.com/apache/maven-archetype/pull/9
 
    Hello @ptahchiev ,
    I just posted a question to Stack Overflow about using this feature, specifically about resolving Groovy dependencies. If/when you have time, could you please take a look? Thank you.
   
    https://stackoverflow.com/q/47540598/6520477


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]