[ http://jira.codehaus.org/browse/MNG-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ian Berry updated MNG-3122: --------------------------- Attachment: duplicateActiveProfiles.zip Attached is a stripped down version of buildinfo. Install the settings.xml attached to this jira into LOCAL_HOME/.m2/ Unzip buildinfo, from the maven-buildinfo-plugin directory execute a: mvn install to run the mojo execute a: mvn buildinfo:listActiveProfiles Look for the error log messages, you will see the duplicate active profiles. Active Profiles defined in LOCAL_HOME/.m2/settings.xml are showing up more than once in MavenProject#getActiveProfiles inside an executing plugin. > 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 > 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