简体   繁体   English

Maven 依赖项下载时间太长

[英]Maven Dependencies taking too long to download

my spring boot project creation takes more than 3 hours just to download dependencies, for example Web, Devtools and JPA.我的 spring boot 项目创建需要 3 个多小时才能下载依赖项,例如 Web、Devtools 和 JPA。

I am using intellij and using http://start.spring.io/我正在使用 Intellij 并使用http://start.spring.io/

what could be the cause of failing to download such small sized dependencies无法下载如此小的依赖项的原因可能是什么

i have realised the problem was that i had allocated a smaller memory to Intellij go to On the Help menu, click Edit Custom VM Options.我已经意识到问题是我为 Intellij 分配了较小的内存 转到“帮助”菜单上,单击“编辑自定义 VM 选项”。 and edit the Xmx 8224 means 8Gb allocated to intellij并编辑 Xmx 8224 表示分配给 intellij 的 8Gb

I had this problem myself.我自己也有这个问题。 It was because my maven repo was on a network drive while the application I was building was on a local drive.这是因为我的 Maven 存储库在网络驱动器上,而我正在构建的应用程序在本地驱动器上。 When I moved the repo to the local drive it fixed the issue.当我将 repo 移动到本地驱动器时,它解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM