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 247327 - Run/Debug does not access the configured main class
Summary: Run/Debug does not access the configured main class
Status: RESOLVED DUPLICATE of bug 246790
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-20 14:47 UTC by hans_artmann
Modified: 2014-10-31 13:08 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 hans_artmann 2014-09-20 14:47:17 UTC
Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Linux version 3.2.0-4-686-pae running on i386
Java; VM; Vendor = 1.7.0_67
Runtime = Java HotSpot(TM) Client VM 24.65-b04

The application is a maven app and  has more than one main class. One main class is set for 'default_config', another main class is set for an additional config 'config2'..
Although 'config2' is chosen, either in the drop down list or by activating it in the project properties, Run or Debug still  starts the application with the main class assigned to 'default_config'.
Comment 1 hans_artmann 2014-09-22 08:20:11 UTC
Just a remark:
I've made a regression test going back to 8.0 and profiles work there as expected.
Updating to 8.0.1 WITHOUT updating the maven plugin breaks the profiles again.
So it's probably not the maven plugin.
Comment 2 Tomas Stupka 2014-10-31 13:08:39 UTC

*** This bug has been marked as a duplicate of bug 246790 ***