how to prevent maven from checking foreign repositories?

前端 未结 3 1319
清酒与你
清酒与你 2021-02-09 17:12

When I build using maven I see it checking all sort of foreign repositories for artifacts which only my local build should produce. How can I tell it that the com.myorg group c

3条回答
  •  太阳男子
    2021-02-09 17:34

    You can try with passing the "-o" option to Maven. -o activates the "Offline mode", in which Maven doesn't query remote repositories to check for updates or new artifacts.

    I don't think that you can specify this on a per-dependency basis.

提交回复
热议问题