Where is mvn.exe when using embedded maven 3 in eclipse indigo?

最后都变了- 提交于 2019-12-21 03:23:12

问题


I'm using the Indigo Release of eclipse. When I check Window -> Preferences, Maven -> Installations, it confirms that it's using the Embedded (3.0.2/...) installation of Maven.

I want to be able to run maven commands from the command line (Windows Powershell), but when I type, e.g.,

PS C:\> mvn

no executable is found. I did a search for "mvn.exe" and found no results.

I suppose I could install a stand-alone version of Maven 3 and add that to my PATH, but I'd prefer to be using the same Maven installation for command line tasks as well as IDE (eclipse) tasks.

So, where is the embedded maven's mvn.exe hiding?


回答1:


The simple answer is, cause it's embedded in Eclipse so you can't call it from console. If you like to do this you have to install Maven yourself.




回答2:


There is no mvn.exe at all. The Maven distro comes with batch or shell scripts. Eclipse runs an embedded version which is called through an API.



来源:https://stackoverflow.com/questions/6790990/where-is-mvn-exe-when-using-embedded-maven-3-in-eclipse-indigo

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