Active profile is ignored by maven-release plugin in multi-module assembly

I have a multi-module maven assembly that requires the profile to be activated only on demand using the -P flag. But for some reason, it is ignored on release using the maven-release plugin.

The following command activates the profile correctly and disables the activeByDefault profile:

mvn clean deploy -Poracle

But when you release with the following command:

mvn help:active-profiles release:clean release:prepare release:perform -Poracle

... the profile is reported as active by the output of the active profiles, but only the activeByDefault profile is actually allowed.

Is this the expected behavior or am I missing some maven magic?

+3
source share
1 answer
+4

All Articles