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
One way that occurs to me is to have the dependencies in a separate pom. You can then add an section via the profile.
my.company.dependencies my-dependencies 1.0.0-SNAPSHOT pom false exclude-deps my.company.dependencies my-dependencies 1.0.0-SNAPSHOT pom my.company bad-dep-1 my.company bad-dep-2