netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Add global maven goal presets

Open mbien opened this issue 1 year ago • 1 comments

  • add mvnw updater and a few maveniverse toolbox diagnostic goals as global preset
  • add right click menu action which leads directly to the global rule editor for easy add/edit/remove, right next to the project specific rule editor
  • some layout adjustments to both global and custom goal windows so that they resize nicely
  • minor language level cleanup

image

"Edit Global Goals" (new) will open the (already existing) window: image

(also accessible from maven execution options)

note: I reverted a few things to not change too much at once. What I originally planned was to combine the global and per-project goal editor windows and I wanted to move the global editor panel to a card in the main maven options. However, the problem is that the two windows and the tools->options windows have different ways how to handle persistence, so this would have been too much at once. Still something we can do at some point.

mbien avatar Jul 02 '24 10:07 mbien

Looks good!

Ideally would have a link to Edit Project Goals that opens the right section of the project properties, between the Other Goals... and Edit Global Goals... links. Possibly another separator between Other Goals... and the edit actions to emphasize execution vs edit?

neilcsmith-net avatar Jul 02 '24 11:07 neilcsmith-net

@neilcsmith-net updated the screenshot, let me know what you think

mbien avatar Jul 03 '24 21:07 mbien

Thanks! Think that works and a good change for NB23.

We could perhaps (in future!) standardize some of the terminology here. We use Goals and Actions in different places, and neither entirely overlaps with Maven's concept of Goal.

neilcsmith-net avatar Jul 04 '24 16:07 neilcsmith-net

we would probably have to call it "action" everywhere to be technically correct, since compile is a phase and compile:compile a goal which happens to be in that phase. The action presets work for both, phases and goals.

Its just that goal is the more familiar term most likely, so if it happens to support phases it is probably ok to call the menu entry point "Edit Goals..."?

I would probably leave it as is for now tbh but I would also have no problem to change it to "Edit Actions...".

mbien avatar Jul 05 '24 14:07 mbien

refreshing since dev build expired

mbien avatar Jul 16 '24 16:07 mbien

planning to merge this before freeze

mbien avatar Jul 22 '24 02:07 mbien