Adding maven repo in IntelliJ

前端 未结 2 1866
遥遥无期
遥遥无期 2020-12-30 02:45

I\'m having trouble adding this repo http://repo1.maven.org/maven2/ under Settings > Maven > Repositories. It also says Nexus Service or Artifactory URL. How can I check if

2条回答
  •  悲&欢浪女
    2020-12-30 03:25

    On windows, add repo as a mirror on this file C:\Users\{user}\.m2\settings.xml

    
      ...
      
        
          other-mirror
          Other Mirror Repository
          http://repo1.maven.org/maven2
          central
        
      
      ...
    
    

    OR

    Add the tag in the

      
        
          
            false
            always
            warn
          
          
            true
            never
            fail
          
          Nexus Snapshots
          snapshots-repo
          http://repo1.maven.org/maven2
          default
        
      
    

提交回复
热议问题