In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to modify the maven local warehouse path, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
The address to manually create the local warehouse is: d:/m2/repository
Add: M2_REPO=d:\ m2\ repository from the environment variable of windows, and add this variable to the path variable.
Modify the d:\ maven\ conf\ setting.xml file to add a new line under the node:
D:/m2/repository
Indicates the address of the local warehouse is: d:/m2/repository
From myeclipse- > preferences- > maven- > installations, add a maven that has been installed to disk d, such as d:\ maven, and check this new addition. And click the browse button below to open the global configuration file for maven, such as: d:\ maven\ conf\ setting.xml.
From myeclipse- > preferences- > maven- > installations, change the user setting option to: d:\ m2\ repository\ settings.xml, and click update settings. And click the reindex button below to update the index.
Click the apply button of the configuration window to highlight the configuration window.
After the configuration is modified, myeclise will automatically update the index. When you restart myeclipse after completion, you will find that the value of the M2_REPO variable has changed to d:/m2/repository.
From then on, all jar packages downloaded by maven from the remote library will be placed under d:/m2/repository. In order to avoid downloading jar from the remote repository every time you build the system, you need to build a private server.
Personal mode of operation:
The address to manually create the local warehouse is: d:/maven/m2/repository
At the person who has installed it, copy has a copy of settings.xml, or it can be a xml carried by your own installed maven.
Open settings.xml, find it, change the value in it to d:/maven/m2/repository, and save
Open eclipse,Windows-- > Maven-- > User Settings, and browse the location of the settings.xml file from copy under User Settings
Click the warehouse address in Update Settings,Local Repository and it is changed to d:/maven/m2/repository.
Click the reindex button on the right to update the index, and maven will automatically update the jar package online to the local machine.
After reading the above, do you know how to modify the local warehouse path of maven? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.