[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-195) activeProfiles element from settings.xml seems to be ignored, property override not working
Karel Piwko (JIRA)
issues at jboss.org
Sun Sep 21 09:26:02 EDT 2014
[ https://issues.jboss.org/browse/SHRINKRES-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004520#comment-13004520 ]
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
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the shrinkwrap-issues
mailing list