Run command doesn't work in Spring Roo
When I run the Run Tests command in Roo, I get the following error:
createprocess error=2,the system cannot find the file specified.
Now all posts on the net assume maven should be in PATH. I did this, I rebooted, my maven install path is there along with my roo track and java course. I have a set of ROO_HOME, JAVA_HOME and M2_HOME.
Versions used:
- Maven: 3.3.1
- Roo: 1.3.1.RC1
- Java: 1.8.0_45
When I start Maven from the command line, I get this:
X:\...>mvn -v
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T21:10:27+01:00)
Maven home: X:\apache-maven-3.3.1
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: X:\Java\jdk1.8.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
Maven seems to be fully functional.
I can also launch the roo console from the command line:
X:\...> roo
1.3.1.RC1 [rev 4877cfb]
Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
roo> perform tests
CreateProcess error=2, The system cannot find the file specified
roo>
So my question is, does anyone know if this is a bug? Because I have such a serious impression. Posts that "supposedly" fix this problem are 2 years old or older.
Thanks for the help!
source to share
Thanks for the offer! Instead of renaming, if you are using the latest version of Windows (10 in my case), you can create a symbolic link as well. Open an admin command prompt> go to maven bin folder> and run the command:
mklink mvn.bat mvn.cmd
hint: I also do this if I need to swtich between maven versions by pointing m2_home to the symlink and just toggling the symlink when needed to point to the correct location.
source to share