I am new to the SpringSource Tool Suite (STS) and am having trouble getting functions like perform tests or perform package to work.

I usually get an error that states:

CreateProcess error=2, The system cannot find the file specified.

I figured out it has something to do with Maven and adding it to the Path, but I cannot seem to find where to implement the environment variable for MAVEN_HOME successfully. Everywhere I have looked tells me something different and hasn't worked so far.

有帮助吗?

解决方案

First check if you can run mvn from your shell. For mvn to be available from your shell, you need to have the M2_HOME/bin added into your PATH variable.

For more information on installing and configuring Maven, please see the following link.

http://maven.apache.org/download.cgi#Installation

Also note that perform tests and perform package are not Maven commands and they are expected to be executed from your Spring Roo console.

其他提示

Try going to Preferences -> Maven -> Installations. Make sure that the selected installation actually exists.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top