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.
The contradictory behavior № 1: Let's create a maven application. Add the main class, to be specific a.b.AppMainClass01. The defaul profile is specified. Project → Popup Menu → Set Configuration → release-profile Project → Popup Menu → Run ʺSelect Main Class for Executionʺ dialog appears. Mark option ʺSelect Permanentlyʺ. As a result nbactions.xml files is created instead of the nbactions-release-profile.xml. The contradictory behavior № 2 Let's create a maven application. Add the main class, to be specific a.b.AppMainClass01. 1. Customize the default profile and set a Main Class as a.b.AppMainClass01 (nbactions.xml will be created) 2. Project → Set Configuration → release-profile 3. Project → Properties → Run. Add argument (any permissible value ) to the field titled as ʺargumentsʺ. Click Ok. (Main Class field remains empty). The file named as nbactions-release-profile.xml is created. 4. Project → Popup Menu → Run. ʺSelect Main Class for Executionʺ dialog appears. If you choose ʺSelect Permanentlyʺ then the action performs. Try ʺRunʺ action again. And again the same dialog window appears. This behavior repeats until we delete nbactions-release-profile.xml file or customize the project and specify a main class.
fixed in jet-main #b56247ed14a6
Integrated into 'main-silver', will be available in build *201607050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b56247ed14a6 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #255973 - Contradictory behavior with profiles