您的位置:首页 > 其它

IDEA下Maven依赖包下载不下来的问题解决方案

2017-10-08 14:56 288 查看
在Mac下使用IDEA作为开发环境时,如果遇到maven依赖的包不能下载,可以看看是不是其setting.xml文件配置的问题,注意默认情况下,其指向的镜像服务器是否是http://repo.maven.apache.org/maven2。
设置方法,可以通过右键项目找到maven选项,open setting.xml选项进行时修改配置文件。
<?xml version="1.0" encoding="UTF-8"?><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"> <servers><server><id>nexus-snapshots</id><username>deployment</username><password>123456</password></server></servers><mirrors><mirror><id>nexus</id><name>internal nexus repository</name><!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>--><url>http://repo.maven.apache.org/maven2</url><mirrorOf>central</mirrorOf></mirror></mirrors></settings>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  idea maven