赞
踩
打开 文件-设置
搜索mvn
修改用户设置文件 和 本地仓库 路径为自己喜欢的目录下
以下为我此处的文件
打开 文件 - 新项目设置 - 新项目的设置
把刚才的设置设置一遍
地址:https://download.csdn.net/download/weixin_45322373/87354608
settings.xml 用记事本打开编辑
<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 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <!-- 本地资源位置 --> <localRepository>D:/mymvn/repository</localRepository> <interactiveMode /> <offline /> <pluginGroups /> <servers /> <!-- 远程仓库镜像配置 --> <mirrors> <!-- 阿里云镜像1 --> <mirror> <id>alimaven1</id> <name>aliyun1 maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <!-- 阿里云镜像2 --> <mirror> <id>alimaven2</id> <mirrorOf>central</mirrorOf> <name>aliyun2 maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> </mirrors> <proxies /> <profiles> <profile> <id>development</id> <activation> <jdk>1.11</jdk> <activeByDefault>true</activeByDefault> </activation> <properties> <maven.compiler.source>1.11</maven.compiler.source> <maven.compiler.target>1.11</maven.compiler.target> <maven.compiler.compilerVersion>1.11</maven.compiler.compilerVersion> </properties> </profile> </profiles> <activeProfiles /> </settings>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。