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.
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
Created attachment 145820 [details] IDE log
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)
(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.
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