[ http://jira.codehaus.org/browse/MNG-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142166#action_142166 ]
Lorenzo Bigagli commented on MNG-3122: -------------------------------------- This is the console output I get: pan:prova bigagli$ mvn help:active-profiles [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. WAGON_VERSION: 1.0-beta-2 [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - it.cnr.imaa.essi:lablib-prova:jar:1.0 [INFO] task-segment: [help:active-profiles] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [help:active-profiles] [INFO] Active Profiles for Project 'it.cnr.imaa.essi:lablib-prova:jar:1.0': The following profiles are active: - property-injection (source: settings.xml) - property-injection (source: settings.xml) > 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