How do I tell Maven to use the latest version of a dependency?

前端 未结 12 732
慢半拍i
慢半拍i 2020-11-21 11:37

In Maven, dependencies are usually set up like this:


  wonderful-inc         


        
12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-21 12:10

    Who ever is using LATEST, please make sure you have -U otherwise the latest snapshot won't be pulled.

    mvn -U dependency:copy -Dartifact=com.foo:my-foo:LATEST
    // pull the latest snapshot for my-foo from all repositories
    

提交回复
热议问题