Pergunta

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.

Foi útil?

Solução

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.

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top