Hi,

I tested the possibility of overriding a profile in a child POM by using
the same profile id but it doesn't work. The profiles get merged.

Is there a simple way to fully override a profile in a child POM?

Merging (i.e. composing) profiles is very useful but I can get this
behavior by activating different profiles (with different ids) on the same
property. It looks like creating a child profile with the same id has
exactly the same behavior.

I'm sure this behavior is something that can't be change at this point but
it might be useful to be able to override a profile by id to give some
additional options for how to design a build through inheritance. Having to
override individual plugins and executions inherited from a parent profile
can get a little tedious.

I don't have a specific use-case in mind. I was just trying to understand
all my options before thinking about how to compose and override my build
behaviors.

Best,
Shahim

Reply via email to