Reputation: 913
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 ..
How can I automate this in Eclipse? So every time Im running the application it would clean, install then run
Upvotes: 0
Views: 1525
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
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