How do I prevent Maven 2 from searching remote repositories for specific local depedencies?

后端 未结 4 913
一整个雨季
一整个雨季 2020-12-19 01:46

How do I prevent Maven 2 from searching remote repositories for specific dependencies that are in the local repository only?

4条回答
  •  被撕碎了的回忆
    2020-12-19 02:29

    How do I prevent Maven 2 from searching remote repositories for specific depedencies that are in the local repository only

    Well, actually, Maven won't unless:

    • they are SNAPSHOT dependencies in which case this is the expected behavior.
    • they are missing a .pom file in which case you can provide it or generate it (see questions below).

    Related questions

    • How do I stop Maven 2.x from trying to retrieve non-existent pom.xml files for dependencies every build?
    • Maven install-file won’t generate pom.xml

提交回复
热议问题