Configure Maven in Spring Tool Suite

Source: Internet
Author: User
Tags xmlns

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.