maven doesnt seem to be installing with springsource tool suite

妖精的绣舞 提交于 2019-12-09 21:46:48

问题


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  

I get the following response:

'mvn' is not recognized as an internal or external command, operable program, or batch file.  

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?

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.

EDIT:
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?


回答1:


You have to configure your Maven environment variable to be able to use it in the command prompt.

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.



来源:https://stackoverflow.com/questions/18454648/maven-doesnt-seem-to-be-installing-with-springsource-tool-suite

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