Is there a way to make Maven download snapshot versions automatically?

前端 未结 7 768
灰色年华
灰色年华 2021-02-05 08:27

So I have a project that depends on a snapshot version of another project. The dependency is:


  org.oop
  

        
7条回答
  •  温柔的废话
    2021-02-05 09:09

    Just add this to your ~/.m2/settings.xml:

    
      
         allow-snapshots
            true
         
           
             snapshots-repo
             https://oss.sonatype.org/content/repositories/snapshots
             false
             true
           
         
       
    
    

提交回复
热议问题