How do I automatically run a Maven configuration when I save a Java file in Eclipse? -


i’m using eclipse mars on mac el capitan. have multi-module maven project, each module loaded eclipse maven-eclipse project. question is, if change java file , save it, how automatically launch action in eclipse run maven goal? objective run maven configuration (mvn —file ../pom.xml clean package -dskiptests) every time make java change.

note have project -> build automatically checked don’t think has tie in maven.

see save hook eclipse plug in:

this plug-in listen save action. if save event fired in workspace, plug-in search configuration file in each project. if found execute specified java class or external program. code allowed modify project files too. useful trigger command on save, code generation, resource sync, enhancement, deploy , on.

for creating own save action hook see hook save action in eclipse plugin.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -