[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 10:17:02 EDT 2014


     [ https://issues.jboss.org/browse/SHRINKRES-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karel Piwko resolved SHRINKRES-195.
-----------------------------------
         Assignee: Karel Piwko
    Fix Version/s: 2.2.0-beta-1
       Resolution: Done


Landed in https://github.com/shrinkwrap/resolver/commit/cdf269e1b1450a1b94b312ba8d6712b22ddbeddf

> 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.
>            Assignee: Karel Piwko
>            Priority: Minor
>             Fix For: 2.2.0-beta-1
>
>
> 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