Text about configuring Maven in Spring Tool Suite.
If you have installed the Spring Tool Suite and MAVEN and configured the MAVEN environment, you can refer to this article for your environment: http://blog.csdn.net/qq233379516/article/details/21322193
Select Window->preferences->maven->installations add ..... Add the Maven folder you extracted earlier
So maven is well-configured, isn't it simple.
With this configuration, the jar package inside the project is placed under the C-drive user. M/repository below
If you want to change the location of the jar package storage. So let's go ahead and do some configuration.
Find the settings.xml below F:\apache-maven-3.2.1\conf, copy it, paste it under C:\Users\chaichai\.m2.
and then
<span style= "FONT-SIZE:14PX;" ><span style= "color: #FF0000;" ><span style= "color: #000000;" ><settings xmlns= "http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi= "http://www.w3.org/2001/ Xmlschema-instance "
xsi:schemalocation=" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/ Settings-1.0.0.xsd "></span></span></span>
Add the following
<span style= "FONT-SIZE:14PX;" ><span style= "color: #FF0000;" ><span style= "color: #000000;" ><localRepository>F:\repository</localRepository>
</span></span></span>
Next Open the Spring Tool Suite tool and find Window->preferences->maven->user Settings Select Browse ... Select the. m2/below Settings.xml as shown:
The path of the Local repository becomes the path we configured, and the jar package file path has been modified.
If there is a wrong place to write, please point them out.
Thank you again for your patience in reading my blog. Hope to be of help to you.