You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sander Verhagen (JIRA)" <ji...@codehaus.org> on 2008/08/01 23:28:26 UTC

[jira] Commented: (MNG-3122) MAVENPROJECT: getActiveProfiles() returning duplicate activeByDefault profile defined in LOCAL_HOME/.m2/settings.xml

    [ http://jira.codehaus.org/browse/MNG-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143911#action_143911 ] 

Sander Verhagen commented on MNG-3122:
--------------------------------------

I'm figuring out if I'm suffering from the same issue, or something different?
A lot of duplication going on in active-profiles output. I'm using an entirely default settings.xml.

{{C:\SVN_WA\unity-Sources\rootproject\rootprojectdesktop>mvn help:active-profiles}}
{{[INFO] Scanning for projects...}}
{{[INFO] Reactor build order:}}
{{[INFO]   rootprojectdesktop}}
{{[INFO]   orbitservices}}
{{[INFO]   webuiapplet}}
{{[INFO] Searching repository for plugin with prefix: 'help'.}}
{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] Building rootprojectdesktop}}
{{[INFO]    task-segment: [help:active-profiles] (aggregator-style)}}
{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] [help:active-profiles]}}
{{[INFO]}}
{{Active Profiles for Project 'com.wps.rd.unity:rootprojectdesktop:pom:0.0.5-SNAPSHOT':}}

{{The following profiles are active:}}

{{- profile-version-latest (source: pom)}}


{{Active Profiles for Project 'com.wps.rd.unity:orbitservices:jar:0.0.5-SNAPSHOT':}}

{{The following profiles are active:}}

{{- profile-version-latest (source: pom)}}
{{- profile-version-latest (source: pom)}}


{{Active Profiles for Project 'com.wps.rd.unity:webuiapplet:jar:0.0.1-SNAPSHOT':}}

{{The following profiles are active:}}

{{- profile-version-latest (source: pom)}}
{{- profile-version-latest (source: pom)}}
{{- profile-version-latest (source: pom)}}


{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] BUILD SUCCESSFUL}}
{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] Total time: 1 second}}
{{[INFO] Finished at: Fri Aug 01 23:17:50 CEST 2008}}
{{[INFO] Final Memory: 3M/127M}}
{{[INFO] ------------------------------------------------------------------------}}

As a comparison:

{{C:\SVN_WA\unity-Sources\rootproject\rootprojectdesktop>mvn help:active-profiles -N}}
{{[INFO] Scanning for projects...}}
{{[INFO] Searching repository for plugin with prefix: 'help'.}}
{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] Building rootprojectdesktop}}
{{[INFO]    task-segment: [help:active-profiles] (aggregator-style)}}
{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] [help:active-profiles]}}
{{[INFO]}}
{{Active Profiles for Project 'com.wps.rd.unity:rootprojectdesktop:pom:0.0.5-SNAPSHOT':}}

{{The following profiles are active:}}

{{- profile-version-latest (source: pom)}}


{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] BUILD SUCCESSFUL}}
{{[INFO] ------------------------------------------------------------------------}}
{{[INFO] Total time: 1 second}}
{{[INFO] Finished at: Fri Aug 01 23:19:00 CEST 2008}}
{{[INFO] Final Memory: 3M/127M}}
{{[INFO] ------------------------------------------------------------------------}}

> MAVENPROJECT: getActiveProfiles() returning duplicate activeByDefault profile defined in LOCAL_HOME/.m2/settings.xml
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-3122
>                 URL: http://jira.codehaus.org/browse/MNG-3122
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.7
>            Reporter: Ian Berry
>             Fix For: 2.0.x
>
>         Attachments: duplicateActiveProfiles.JPG, duplicateActiveProfiles.zip, settings.xml
>
>
> MavenProject:getActiveProfiles() is returning duplicate activeByDefault profiles defined in LOCAL_HOME/.m2/settings.xml.
> Attached settings.xml resides in LOCAL_HOME/.m2.
> Below is part of the output of a buildInformation plugin i am writing, which shows profile WLS8 twice.
>  <activeProfiles>
>      <activeProfile>
>        <profileId>default-repositories</profileId> 
>        <profileSource>settings.xml</profileSource> 
>      </activeProfile>
>    <activeProfile>
>       <profileId>WLS8</profileId> 
>       <profileSource>settings.xml</profileSource> 
>     </activeProfile>
>    <activeProfile>
>       <profileId>WLS8</profileId> 
>       <profileSource>settings.xml</profileSource> 
>     </activeProfile>
> </activeProfiles>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira