How to create 2 archetypes out of the same project having different modiles in maven

17 Views Asked by At

I have a project with module A and module B i want to create 2 artifacts separately 1. with module A + module B packaged and another one with only Module B packaged. Both of these would have different names. How can I do it in a single shot.

1

There are 1 best solutions below

1
Sourabh Ninawe On

I found an answer to this myself. We can use something called activeByDefault as false for whatever module we need to ignore.