I've got 3 modules:
- Module1
- Module2
- Module3
and 3 profiles:
- Profile1
- Profile2
- Profile3
I'd like to build Module1 if:
Profile2orProfile3is activated, and- Command-line property
skipModule1is not set.
Regardless of whether Module1 is built, Profile2 and Profile3 should build (both) modules Module2 and Module3. Can this be implemented in Maven 3? If so, how?
The problem, as I see it, is that profiles can't activate other profiles
and I can't include Module1 as part of Profile2 or Profile3 because there is no way for me to specify that Module1 should be skipped if skipModule1 is not set.