Maven使用经验
1.修改下载镜像
打开你的maven目录conf文件夹下配置文件settings.xml
ctrl + f 搜索“<mirrors>”,
让它只包含
<!-- 配置阿里云镜像 --> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror>
2.修改本地仓库地址
ctrl + f 搜索“<localRepository>”,仓库的位置是${user.home}/.m2/repository。
默认在C:\Users\xxxx\.m2\repository
修改为我们指定路径
<!--自定义本地仓库路径--> <localRepository>E:\Apache\apache-maven-3.6.1\conf\repository</localRepository>
3.修改idea设置
File->Settings->Build, Execute, Deployment->Build Tools->Maven
修改为:
修改 Maven home directory: E:/Apache/apache-maven-3.6.1
修改 User settings file: E:\Apache\apache-maven-3.6.1\conf\settings.xml
Local repository 会被自动识别为 E:\Apache\apache-maven-3.6.1\conf\repository
4.修改eclipse设置
菜单->Window->Preferences->Maven->Installations->
Add->Directory->指定E:\Apache\apache-maven-3.6.1->Finish
选中刚刚指定的->Apple
菜单->Window->Preferences->Maven->User Settings->
Global Settings 和 User Settings都使用:E:\Apache\apache-maven-3.6.1\conf\settings.xml
Local repository 会被自动识别为 E:\Apache\apache-maven-3.6.1\conf\repository
最后Apple->ok
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01