E
E
Egor Lepikhin2019-06-11 13:09:24
Eclipse
Egor Lepikhin, 2019-06-11 13:09:24

How to rebuild application with Maven in Eclipse in 1 click?

I have an application that is built using Maven. To rebuild the project, I enter the commands each time:
mvn package
cd target
java -jar app.jar
Now I made it so that when you click Run, mvn package is launched , but to run java -jar app.jar you need to switch the Run Configuration every time. This is certainly more convenient than it was, but I would like to click on one button and calmly wait for the build
. Is it possible to configure Eclipse so that when you click on the Run button, all 3 commands are executed at once?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question