P
P
P_Alexander2018-03-15 15:39:32
Java
P_Alexander, 2018-03-15 15:39:32

How to run maven in idea before starting the server?

Such a question, I need that when I click on the run button, I would first work out the maven (clean, compile, package) and then start the server and unfold the var archive that the maven made!?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexjdev, 2018-03-15
@alexjdev

Alternatively, you can use tomcat-maven-plugin or jetty-maven-plugin. Add its configuration to pom.xml. Next, in the Idea at the top, select "Edit Configurations ..." and set the maven goal to start your server (run). You can select the plugin in the Maven Projects section (on the right, usually in the Idea) and select the desired task (for example, tomcat7: run). On it, right-click and you will be able to immediately create a Run Configuration. Here are the screenshots:
take.ms/6QZZy
take.ms/8s5vF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question