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 242636 - Global custom maven goals editor not working - added goals do not show up in list
Summary: Global custom maven goals editor not working - added goals do not show up in ...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-06 21:40 UTC by heapifyman
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (161.82 KB, text/plain)
2014-03-06 21:40 UTC, heapifyman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heapifyman 2014-03-06 21:40:53 UTC
Global custom maven goals editor not working - added goals do not show up in list

Open the editor (Java - Maven - Execution - Edit global custom goals definitions...)
Add a custom goal
Click OK
Open editor again

Result:
custom goal does not show up in list

Expected result:
custom goal should show up in list

Product Version = NetBeans IDE 8.0 RC1 (Build 201402242200)
Operating System = Mac OS X version 10.9.2 running on x86_64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 heapifyman 2014-03-06 21:40:58 UTC
Created attachment 145820 [details]
IDE log
Comment 2 Milos Kleint 2014-03-07 07:44:16 UTC
apparently an important step here it to mark the added action to show in toolbar. Somehow in this case the same action was already present in the system filesystem.



Caused: java.io.SyncFailedException: File CUSTOM-Jrebel Debug.instance already exists in filesystem /Users/philip/Library/Application Support/NetBeans/8.0rc1/config (/Users/philip/Library/Application Support/NetBeans/8.0rc1/config/Actions/Maven/CUSTOM-Jrebel Debug.instance).
	at org.openide.filesystems.LocalFileSystem.createData(LocalFileSystem.java:279)
	at org.openide.filesystems.LocalFileSystem$Impl.createData(LocalFileSystem.java:588)
	at org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:473)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
	at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1189)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:799)
	at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1189)
	at org.openide.filesystems.FileUtil.copyFileImpl(FileUtil.java:581)
	at org.openide.filesystems.FileObject.copy(FileObject.java:154)
	at org.openide.filesystems.MultiFileObject.copy(MultiFileObject.java:1389)
	at org.openide.filesystems.MultiFileObject.copy(MultiFileObject.java:1389)
	at org.netbeans.modules.maven.actions.RunCustomMavenAction.createActionDeclaration(RunCustomMavenAction.java:181)
[catch] at org.netbeans.modules.maven.customizer.ActionMappings.applyToolbarChanges(ActionMappings.java:941)
	at org.netbeans.modules.maven.options.SettingsPanel.btnGoalsActionPerformed(SettingsPanel.java:743)
Comment 3 heapifyman 2014-03-11 20:19:05 UTC
(In reply to Milos Kleint from comment #2)
> apparently an important step here it to mark the added action to show in
> toolbar.

You are right, forgot to mention that.
If I do not click "Show in Toolbar" for the custom goal, this issue does not appear.

> Somehow in this case the same action was already present in the
> system filesystem.
> 

Well, I tried to create the same goal again, after the first one mysteriously disappeared from the list.
Comment 4 Martin Balin 2016-07-07 08:38:20 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