Can a Maven extension add an additional profile to a POM (during the build)?
Or are profiles already resolved when Maven extensions run?
Note that I am not talking about Maven plugins, but about Maven extensions.
Can a Maven extension add an additional profile to a POM (during the build)?
Or are profiles already resolved when Maven extensions run?
Note that I am not talking about Maven plugins, but about Maven extensions.
Copyright © 2021 Jogjafile Inc.
I do see following option there: try to modify raw xml prior building project object model, something like:
IMO, in case of this approach there are following challenging parts:
flatten-maven-plugin
, for example)pros: such approach seems to be less invasive - even
IntelliJ
recognises new profile, although it's maven support is very poor.