How can I ask Maven for a list of the default repositories?

后端 未结 4 493
萌比男神i
萌比男神i 2020-12-28 14:46

What command can I use to ask Maven for a list of the default repositories that it searches for its dependencies? If no such command exists, where else may I look to find t

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 15:24

    Use the Maven Dependency Plugin to show repositories for a specific build:

    mvn dependency:list-repositories
    

    or the full path, if you still use a very old version (<2.2)

    mvn org.apache.maven.plugins:maven-dependency-plugin:2.6:list-repositories
    

提交回复
热议问题