John Casey wrote:
Is it possible that the only profiles which are ever fed through this
code are those that have been selected as active in the settings?
No, it seems the code I mentioned is called by
DefaultMavenProjectBuilder.loadProjectExternalProfiles() for every
profile listed in the profiles.xml.
By now an IT is online showing that for a profiles.xml like
<profilesXml>
<profiles>
<profile>
<!-- NOTE: This has no activation, not even activeByDefault -->
<id>mng-2605-profiles</id>
<properties>
<profilesProperty>INJECTED</profilesProperty>
</properties>
</profile>
</profiles>
</profilesXml>
the profile "mng-2605-profiles" gets activated upon mere invocation of
"mvn validate", i.e. without "-Pmng-2605-profiles".
I'd say this code is out of date, and needs revision.
If it's the consensus that profiles defined in profiles.xml should not
be activeByDefault, I'm happy to go for it.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]