栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

IDEA 2021 整合 SSM 配置离线 Maven 3.8.1 报错大全

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

IDEA 2021 整合 SSM 配置离线 Maven 3.8.1 报错大全

Blocked mirror for repositories: [nccloud-snapshots (http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/, default, releases+snapshots), yhtSnapshots (http://maven.libin.com/nexus/content/repositories/YHTCloud-Snapshot/, default, snapshots), yhtReleases (http://maven.libin.com/nexus/content/repositories/YHTCloud-Release/, default, releases)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:

Check that Maven settings.xml does not contain http repositoriesCheck that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/Check that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/YHTCloud-Snapshot/Check that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/YHTCloud-Release/Add a mirror(s) for http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/, http://maven.libin.com/nexus/content/repositories/YHTCloud-Snapshot/, http://maven.libin.com/nexus/content/repositories/YHTCloud-Release/ that allows http url in the Maven settings.xmlDowngrade Maven to version before 3.8.1 in settings

Blocked mirror for repositories: [nccloud-snapshots (http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/, default, releases+snapshots)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:

Check that Maven settings.xml does not contain http repositoriesCheck that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/Add a mirror(s) for http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/ that allows http url in the Maven settings.xmlDowngrade Maven to version before 3.8.1 in settings

Blocked mirror for repositories: [nccloud-snapshots (http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/, default, releases+snapshots), yhtSnapshots (http://maven.libin.com/nexus/content/repositories/YHTCloud-Snapshot/, default, snapshots), yhtReleases (http://maven.libin.com/nexus/content/repositories/YHTCloud-Release/, default, releases)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:

Check that Maven settings.xml does not contain http repositoriesCheck that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/Check that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/YHTCloud-Snapshot/Check that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/YHTCloud-Release/Add a mirror(s) for http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/, http://maven.libin.com/nexus/content/repositories/YHTCloud-Snapshot/, http://maven.libin.com/nexus/content/repositories/YHTCloud-Release/ that allows http url in the Maven settings.xmlDowngrade Maven to version before 3.8.1 in settings

Blocked mirror for repositories: [nccloud-snapshots (http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/, default, releases+snapshots)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:

Check that Maven settings.xml does not contain http repositoriesCheck that Maven pom files not contain http repository http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/Add a mirror(s) for http://maven.libin.com/nexus/content/repositories/nccloud-snapshots/ that allows http url in the Maven settings.xmlDowngrade Maven to version before 3.8.1 in settings

第一步:


免费送上一份 maven 3.8 setting 配置文件







  
D:JavaMavenRepository

  

  
 
  
  
    
  

  
  
    
  

  
  
    

    
  

  
  
    
    
      maven-default-http-blocker
      external:http:*
      Pseudo repository to mirror external repositories initially using HTTP.
      http://0.0.0.0/
      true
    


      
          central
          central
          file://D:JavaMavenRepository
          *
      

      
          alimaven
          aliyun maven
          https://maven.aliyun.com/nexus/content/groups/public/
          *
      
      
          alimaven
          *
          aliyun maven
          http://maven.aliyun.com/nexus/content/repositories/central/
      

   
   
       aliyun-central
       *
       aliyun central
       https://maven.aliyun.com/repository/central
   

 
 
            alimaven
            aliyun maven
            http://maven.aliyun.com/nexus/content/groups/public/
            central
        
  

 

  
  


    
        nexusProfile
        
            
                nccloud-snapshots
                nccloud Snapshots Repository
                http://maven.yonyou.com/nexus/content/repositories/nccloud-snapshots/
                
                    true
                
                
                    true
                
            
        
    






    

    
  


nexusProfile

  


核心配置:



      
          central
          central
          file://D:JavaMavenRepository
          *
      

核心配置:

D:JavaMavenRepository
那么如何解决,才能在无网络环境下开发呢?

第一步:设置好maven的本地仓库地址

第二部:把镜像地址也指向本地的maven仓库地址

修改好之后的setting.xml文件如下(主要配置是加上下面加粗字体部分):




E:wokesoftwaremaven-repository

 
       
            central
            central
            file://E:wokesoftwaremaven-repository
            *
        
    


备注 jar 包来源,拷贝同事的老项目jar 包 ,自定义 依赖 ,一直不能导入 jar包,研究了一早上,得到最终方案~~

不要打开idea 的离线模式!!!
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/785699.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号