How to execute mvn command using IntelliJ IDEA?

半腔热情 提交于 2019-12-01 15:35:40

There is a button in maven menu of Intellij IDEA:

Also you can always use "Terminal"

You can check the Image :

If you don't fine the Maven Projects there then you can open it from Bottom Left part of Intellij IDEA, there's one Square Button there. click on it.

If You don't have configure the maven path then you also need to configure maven directory also. Using maven settings.

In the Edit Configurations you can specify a Maven configuration which allows you to execute Maven goals.

That said, I recommend to add the library to a Maven Repository such as Nexus. Then you can use the library like any other dependency and don't have to wory about the local repositories yourself.

In IntelliJ IDEA Ultimate 2018.2 (maybe earlier) there is a maven projects tool window:

Then goals are available:

There is no other way than to use the terminal for some commands. But these are few since there is quite a number of cool features in the toolbar.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!