I have a maven module which has some dependencies. In a certain profile, I want to exclude some of those dependencies (to be exact, all dependencies with a certain group id). Th
Bit dirty but lightweight solution is to use
.
Unlike the other scopes you could use this:
provided
or runtime
which disables only one at a timetest
scopesystem
scope requireNothing gets imported as long as you use this hack outside dependencyManagement
.