Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to combine mvn clean and mvn install into a single task?

I'm following the Scala, Eclipse and Maven Integration tutorial.
It is really useful.
But there is one thing that seems annoying to me: I always need to run two commands from the Eclipse Run as menu:

Maven clean
Maven install

Is there any way to configure Scala and Maven plugins for Eclipse, to make it possible to run both tasks as a single command from the Eclipse menu?

For example:

Maven clean install

like in the following Eclipse non-Scala configuration.

like image 746
MockerTim Avatar asked Feb 06 '12 07:02

MockerTim


1 Answers

Choose the option Maven build..., and type clean install in the Goals text box.

like image 190
JB Nizet Avatar answered Sep 28 '22 01:09

JB Nizet