Tlink
Tlink

Reputation: 913

Java maven project building with clean, install, run as

Many times I find that for my changes to take effect while working on a Maven/java project I need to Maven clean -> Maven install -> run as ..

Screenshot here

How can I automate this in Eclipse? So every time Im running the application it would clean, install then run

Upvotes: 0

Views: 1525

Answers (2)

SiKing
SiKing

Reputation: 10329

If you select option 5 "Maven build...", you will get a window where you can specify different goals. Put in clean install and click Run. This will create a new menu item (which you can also name) in the "Run As..." menu.

Upvotes: 2

Piotr Rogowski
Piotr Rogowski

Reputation: 3890

Install the m2Eclipse plugin in your eclipse http://www.eclipse.org/m2e/

or create bat file in your project with command mvn clean install

Upvotes: 1

Related Questions