将intellij想法“mvn install”制作项目时自动? [英] Will intellij idea "mvn install" automatically when make the project?

查看:91
本文介绍了将intellij想法“mvn install”制作项目时自动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

google搜索后我找不到任何答案。我是Maven世界的新手。

I cannot find any answer after googling a lot. I am newbie in Maven's world.

此外,我想知道当我点击构建项目时,Intellij IDEA会对我的Maven项目做些什么? Intellij如何使用Maven构建项目?

In addition, 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?

推荐答案

Intellij IDEA不会自动执行 make install 当你执行 Build Project 时。为此,请按以下步骤操作:

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

Maven Projects 标签下(通常在右侧),选择您希望Intellij在 Build - >之后运行的目标。 Make Project 然后右键单击并选择触发器(例如在上面的快照中,触发器被选为'Make Make After Make'。你可以选择你想要的任何东西。)

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).

执行此操作后, Build - > Make Project 也将运行 mvn clean install

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

这篇关于将intellij想法“mvn install”制作项目时自动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆