Invoking Actions other than Build and Clean & Build

后端 未结 4 1370
遥遥无期
遥遥无期 2020-12-09 19:26

I am new to NetBeans and am trying to define and run various custom goals for my Maven proj. My Maven proj uses a number of plugins; once for building the Java classes, anot

4条回答
  •  Happy的楠姐
    2020-12-09 19:59

    This is really just a comment on @Ev0oD's answer, but I want to add an image so it has to be a separate answer.

    After I created the toolbar button using:

    Tools -> Options -> Java -> Maven -> Execution -> Edit Global Custom Goal Definitions

    I then had to add the button to the toolbar using:

    View -> Toolbars -> Customize (or just right click the toolbar header and select Customize)

    I could then see the new button in the "Maven" group in this dialog: Adding new Maven action button to toolbar

    I then had to drag the button onto a toolbar as shown. Note: Don't try to drag it to the blank part on the right of the toolbar header as this won't work.

提交回复
热议问题