maven似乎没有安装与springsource工具套件 [英] maven doesnt seem to be installing with springsource tool suite
问题描述
我最近安装了eclipse的springsource工具套件插件,在Windows 7上运行。但是当我打开一个命令提示符(通过在Windows开始菜单中键入cmd)并输入:
I recently installed the springsource tool suite plugin for eclipse, running on windows 7. But when I open a command prompt (by typing cmd in the windows start menu) and type in:
mvn --version
以下响应:
'mvn' is not recognized as an internal or external command, operable program, or batch file.
所以我下载了springource工具套件的独立版本,这不是我想要的。尽管如此,我仍然得到相同的响应在命令行上,当我键入mvn --version。任何人都可以告诉我如何解决这个问题?
So I then downloaded the stand-alone version of springsource tool suite, which is not what I want. And nonetheless, I still get the same response on the command line when I type in mvn --version. Can anyone tell me how to fix this problem?
我在输入java -version时得到相同的响应。所以这可能是一个命令提示问题。我遵循从web教程的确切语法。
I get the same response when I type in java -version . So this might be a command prompt problem. I a following the exact syntax from web tutorials.
编辑:
我刚刚在eclipse市场上下载m2e,但得到的消息是没有什么新的安装。这似乎表明我有maven安装,那么如何通过命令行在Windows 7中访问它?
I just tried to download m2e in the eclipse marketplace, but got the message that there is nothing new to install. This seems to indicate that I have maven installed, so then how do I access it via the command line in windows 7?
推荐答案
您必须配置您的Maven环境变量才能在命令提示符中使用它。
You have to configure your Maven environment variable to be able to use it in the command prompt.
在您的情况下,不需要下载maven二进制文件,因为它与STS一起,只需在STS目录中找到Maven文件夹。
In your case there's no need to download the maven binars because it comes with STS, just find the Maven folder inside the STS directory.
这篇关于maven似乎没有安装与springsource工具套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!