This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216665 - Do not map activeByDefault profiles to confgurations
Summary: Do not map activeByDefault profiles to confgurations
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 14:02 UTC by Jesse Glick
Modified: 2016-07-07 08:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-08-10 14:02:43 UTC
When you have e.g.

<profile>
    <id>netbeans-ide</id>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
    <properties>
        <netbeans.installation>...</netbeans.installation>
    </properties>
</profile>

in settings.xml, this is basically a permanent definition for Maven. Yet it clutters Run > Set Project Configuration, even though selecting -Pnetbeans-ide would have no additional effect.

Any profiles that are activeByDefault should be excluded from the mapping into generated project configurations. (Ideally the same would be true of any other profiles whose activation evaluates to true already.)
Comment 1 Milos Kleint 2012-08-12 09:02:42 UTC
are you positive that activeByDefault is always enabled? AFAIK the definition is/was somewhat more fluent. The profile was activated unless some other profile was activated explicitly.
Comment 2 Jesse Glick 2012-08-13 15:01:04 UTC
I am not sure offhand is that is true or not. Either way, it still makes no sense to define a profile for e.g. 'netbeans-ide', since -Pnetbeans-ide should behave the same as not setting any -P at all, i.e. the default configuration.
Comment 3 Martin Balin 2016-07-07 08:39:27 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss