Can I add the button to the part of idea's plugin (maven plugin)?

164 Views Asked by At

My goal is to create a plugin that will build maven project with some custom settings. Can i, for example, choose a couple of goal and press my button to build the maven project with my settings?

Сan I add button here? .

If it is not possible can i add this action to right mouse button context menu or should i implement my own maven plugin? Maybe there is some other, more beuty way of doing this with actions or somehow?

3

There are 3 best solutions below

0
On BEST ANSWER

Yes. You need to add a dependency on the Maven plugin and add your action to the Maven.NavigatorActionsToolbar action group.

1
On

You can create a Maven Run Configuration and run it when you need to execute custom build.

1
On

See my answer to another post on how to create a run configuration that launches custom Maven goals: Running mvn command using IntelliJ IDEA