Maven Lifecycle clean and install in one command?

Answered

Is it possible to configure Maven Build in Treenode Lifecycle so that clean and install are executed by one click? So that it is not necessary to click first clean and then install.

Thanks

0
2 comments

Hello Stephan,

You can use the Run Anything pop-up (double-Ctrl). It will remember recently executed commands so that you can rerun them anytime.

Alternatively, you can create an External Tool that will run mvn for multiple goals in a specific folder (using a macro for working directory). The created tool will be available in all projects, and the macro will be resolved to current project. It's also possible to assign a keyboard shortcut to the created external tool. If you want it to trigger e.g. on file change, you can use the File Watchers plug-in.

You can also assign keyboard shortcuts directly to Maven goals, and e.g. execute them upon certain events (after Make, after Rebuild, etc):

0

Hello Arina, 

thanks for the quick response. Your suggestions are very usefull. I will find something to work with. 

 

1

Please sign in to leave a comment.