mvn.exe在哪里使用嵌入式maven 3在日食靛蓝? [英] Where is mvn.exe when using embedded maven 3 in eclipse indigo?
问题描述
我想要能够从命令行运行maven命令(Windows Powershell),但是当我键入,例如
PS C: \> mvn
找不到可执行文件。我搜索mvn.exe,没有找到结果。
我想我可以安装一个独立版本的Maven 3,并将其添加到我的PATH中,但是我宁愿在命令行任务以及IDE(eclipse)任务中使用相同的Maven安装。
那么,嵌入的maven的mvn.exe在哪里隐藏?
简单的答案是,因为它嵌入到Eclipse中,所以你不能从控制台调用它。如果你喜欢这样做,你必须自己安装Maven 。
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?
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.
这篇关于mvn.exe在哪里使用嵌入式maven 3在日食靛蓝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!