質問

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