how to prevent maven from checking foreign repositories?

前端 未结 3 1322
清酒与你
清酒与你 2021-02-09 17:12

When I build using maven I see it checking all sort of foreign repositories for artifacts which only my local build should produce. How can I tell it that the com.myorg group c

3条回答
  •  心在旅途
    2021-02-09 17:21

    If the remote repositories that you are using are release repositories and do actually not contain any SNAPSHOT, they you can disable SNAPSHOT for them and Maven won't check them for SNAPSHOT updates. For example:

    
      
        java.net
        http://download.java.net/maven/2
        
          false
        
      
      ...
     
    

提交回复
热议问题