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 154506 - [codehaus] Update mainClass in jar-plugin configuration if present when selecting main class in UI
Summary: [codehaus] Update mainClass in jar-plugin configuration if present when selec...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 169714 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-03 16:26 UTC by Jaromir Uhrik
Modified: 2016-07-07 08:38 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 Jaromir Uhrik 2008-12-03 16:26:44 UTC
This issue was originally reported by Magne Nordtveit in 18/Jul/08 at codehaus.org - see more details at
http://jira.codehaus.org/browse/MEVENIDE-651

===========
Description:
===========
When updating the mainClass in the UI, the UI should check the pom file and check if a mainClass is defined in a
jar-plugin configuration and update it if it is specified. It should however not update if it mainClass is in a profile.

----------------------------------------------
Comment by Milos Kleint [ 18/Jul/08 03:47 AM ]
----------------------------------------------
what do you mean by "It should however not update if it mainClass is in a profile."?
That's why the automated editing of pom.xml is so hard. Stuff can be at many different places and it depends on the
final resolution what gets actually used.

-------------------------------------------------
Comment by Magne Nordtveit [ 18/Jul/08 06:08 AM ]
-------------------------------------------------
What i ment was that the UI should just update the mainClass argument if, and only if, it already exists in the POM's
<build/> definition.
It should in my opinion not look in the <profiles/> as that might be used to activate different builds with different
main classes.
Comment 1 Milos Kleint 2009-08-03 10:18:47 UTC
*** Issue 169714 has been marked as a duplicate of this issue. ***
Comment 2 Antonin Nebuzelsky 2010-07-30 15:17:05 UTC
Reassigning to default owner.
Comment 3 Martin Balin 2016-07-07 08:38:16 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