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.
Created attachment 148967 [details] sample project showing that configurations other than default are not used to run the application Product Version: NetBeans IDE Dev (Build 201408310001) Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26 System: Windows 8 version 6.2 running on amd64; Cp1252; fr_FR (nb) If a Maven project has a default configuration with some run parameters, and another 'test' configuration with some slightly different ones, then only the default configuration is run no matter that the 'test' one is selected or not. To reproduce use the attached project then select the test configuration then run. It should print arg = [-test]
Created attachment 148969 [details] proposed patch This issue seems related to the changes done for #229192 and #34300. Attached is a small patch that first attempt to read the profile from a dedicated file for that profile then if not found to try to read the profile from the profiles section of the default, like what is done slightly above in getRawMappings().
> This issue seems related to the changes done for #229192 and #34300. the second one should be #246300
the issue is also in Netbeans 8.0.1
*** Bug 247909 has been marked as a duplicate of this bug. ***
thanks for the patch - it works, but before applying would still like to have a look on how the issues #229192 and #246300 caused the problem and if the fix shouldn't be better made at some other place.
fixed in core-main #ba354948b3ae
*** Bug 247327 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201411010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ba354948b3ae User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #246790 - Maven run use the default configuration/profile though an additional one is selected
Thanks (fix verified in NetBeans IDE Dev (Build 201411030002) with the project on which I first noticed this).
*** Bug 247168 has been marked as a duplicate of this bug. ***
backported to releases #b2309713dc06
Integrated into 'releases/release801', will be available in build *201411102027* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/b2309713dc06 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #246790 - Maven run use the default configuration/profile though an additional one is selected
*** Bug 248746 has been marked as a duplicate of this bug. ***