Will intellij idea “mvn install” automatically when make the project?

后端 未结 2 517
长发绾君心
长发绾君心 2021-01-01 12:00

I\'d like to know what will Intellij IDEA do with my Maven project when I click \"build the project\"?
How will Intellij build the project with Maven?

2条回答
  •  死守一世寂寞
    2021-01-01 12:36

    Intellij IDEA will not automatically do a make install when you do a Build Project. In order to do that, proceed as follows:

    Under Maven Projects tab (usually on the right hand side), select the goals you want Intellij to run after a Build -> Make Project and then right click and select the trigger (for instance in the above snapshot, the trigger was chosen as 'Execute After Make'. You can choose whatever you wish).

    After doing this a Build -> Make Project will run a mvn clean install as well.

提交回复
热议问题