'Spring tool suite, configure maven path
I just installed spring tool suite and want to run a command line application. My project contains two files (mvnw and mvnw.cmd). I found that these files are used where maven is not installed on the path. How can I configure maven path in my situation?
Solution 1:[1]
mvnw and mvnw.cmd files are of Maven wrapper.
I you want to run terminal commands with maven, we must install it.
remember, in "STS", maven is not configured to work out of STS (and terminal usage is out of STS usage).
maven download link is here
download latest maven from here
extract it where ever you want.
i extracted as below (see the bin,boot,conf,... folders are shown below as in the image):

as this maven download is extracted from zip file (it is not setup), you will have to add this extracted path to "PATH" variable in windows environment.
follow this to set environment path:

now "mvn" command must work.
but
and i had to restart STS (spring tool suit) for "mvn" to work in terminal in sts
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
