2018-12-08 win10系统maven环境搭建

1.下载maven的zip包,官网下载地址:
https://maven.apache.org/download.cgi
2.将zip包解压到开发环境目录:
如D:/devtools1.8/maven3.5.4
3.找到解压目录的/conf/settings.xml文件,打开,增加如下配置:

D:/devtools1.8/maven/repository

        
          alimaven
          aliyun maven
          http://maven.aliyun.com/nexus/content/groups/public/
          central        
        
        
            UK
            central
            http://uk.maven.org/maven2
        
        
            net-cn
            central
            http://maven.net.cn/content/groups/public/
        
        
            osc
            central
            http://maven.oschina.net/content/groups/public/
        
        
            osc_thirdparty
            thirdparty
            http://maven.oschina.net/content/repositories/thirdparty/
        
    

    
        
            osc
            
                true
            
            
                
                    osc
                    http://maven.oschina.net/content/groups/public/
                
                
                    osc_thirdparty
                    http://maven.oschina.net/content/repositories/thirdparty/
                
            
            
                
                    osc
                    http://maven.oschina.net/content/groups/public/
                
            
        
        
            net-cn
            
                
                    net-cn
                    http://maven.net.cn/content/groups/public/
                
            
            
                
                    net-cn
                    http://maven.net.cn/content/groups/public/
                
            
        
    

4.eclipse引入maven,打开“window--Perferences”,找到“Maven--Installations”,引入上面下载的maven:


maven1.png

5.eclipse确认maven的settings.xml引用和仓库地址配置是否正确:


maven2.png

2018-12-08

你可能感兴趣的:(2018-12-08 win10系统maven环境搭建)