How to execute mvn command using IntelliJ IDEA?

不打扰是莪最后的温柔 提交于 2019-12-12 07:07:15

问题


I am trying to add Oracle JDBC driver in my local Maven repo. I have found this link to do so.

I want to do the same from Inside IntelliJ IDEA. Is there any way to execute mvn commands from IntelliJ IDEA?


回答1:


There is a button in maven menu of Intellij IDEA:

Also you can always use "Terminal"




回答2:


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.




回答3:


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.




回答4:


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.




回答5:


Just press the ctrl key twice!

Then you will see this: Command window

Then run your maven command

https://www.jetbrains.com/help/idea/work-with-maven-goals.html



来源:https://stackoverflow.com/questions/27246065/how-to-execute-mvn-command-using-intellij-idea

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