mvn.exe在哪里使用嵌入式maven 3在日食靛蓝? [英] Where is mvn.exe when using embedded maven 3 in eclipse indigo?

查看:105
本文介绍了mvn.exe在哪里使用嵌入式maven 3在日食靛蓝?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用日食的靛蓝发行。当我检查窗口 - >首选项,Maven - >安装时,它确认它正在使用Maven的Embedded(3.0.2 / ...)安装。



我想要能够从命令行运行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屋!

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