How to prevent maven to resolve dependencies in local repository

前端 未结 2 2138
礼貌的吻别
礼貌的吻别 2021-02-19 13:01

Is there a way to tell maven (when doing mvn package, mvn site or ...) not to resolve the dependencies from the local repository?

Background of

2条回答
  •  生来不讨喜
    2021-02-19 13:32

    The basic test of a maven build is to delete the local repository .m2/repository and try to build (mvn package) and see if it is working. If not you have other problems here. As mentioned the problem seemed to be the process you are working with. If a dependency is not available anymore from a remote repository there is an other problem. Are you using a Repository Manager for example Nexus, Archiva, Artifactory ?

提交回复
热议问题