Tuesday, 27 August 2013

How to build a Maven module if a profile is activated and a property is not set?

How to build a Maven module if a profile is activated and a property is
not set?

I've got 3 modules:
Module1
Module2
Module3
and 3 profiles:
Profile1
Profile2
Profile3
I'd like to build Module1 if:
Profile2 or Profile3 is activated, and
Command-line property skipModule1 is 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?

No comments:

Post a Comment