]
Karel Piwko commented on SHRINKRES-195:
---------------------------------------
Trying to reproduce the issue, it seems that profile from settings.xml is indeed
activated, however properties are not propagated back to Model and hence to
ParsedPomFile.
activeProfiles element from settings.xml seems to be ignored,
property override not working
-------------------------------------------------------------------------------------------
Key: SHRINKRES-195
URL:
https://issues.jboss.org/browse/SHRINKRES-195
Project: ShrinkWrap Resolvers
Issue Type: Bug
Components: impl-maven
Affects Versions: 2.0.2
Environment: Win7 x64
JDK7u51
Reporter: Falko M.
Priority: Minor
See:
http://maven.apache.org/settings.html#Active_Profiles
On the command line (mvn), the element is evaluated as expected and the specified
profiles are activated but when I load the very same pom.xml via
{{Maven.resolver().offline().loadPomFromFile(...)}}, the respective profiles are ignored,
as it seems.
I came accross this issue when I wanted to override a property from pom.xml in
settings.xml and {{ParsedPomFile.getProperties()}} kept returning the non-overriden
value.
Notes:
- the following in settings.xml *does work*:
{noformat}
<activation>
<activeByDefault>true</activeByDefault>
</activation>
{noformat}
- a new property defined in a settings.xml profile also doesn't show up in
{{ParsedPomFile.getProperties()}} which seems to prove that the profile is not actived