idea使用maven配置下载镜像(解决依赖文件下载不动的问题)

转载自 http://blog.csdn.net/sky19891212/article/details/43924831?locationNum=7&fps=1,亲测好用~

设置方法,可以通过右键项目找到maven选项,open setting.xml选项进行时修改配置文件。
 
   
 
   
 
   
 
   
xml version="1.0" encoding="UTF-8"?>
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">
    

        
            nexus-snapshots
            deployment
            123456
        

    

    

        
            nexus
            internal nexus repository
            
            http://repo.maven.apache.org/maven2
            central
        

    

你可能感兴趣的:(maven)