最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

build.gradle - gradle project load is not loading the dependencies to Maven(.m2) repository - Stack Overflow

programmeradmin1浏览0评论

I have loaded a new gradle spring boot project to Intellij and when the project is imported, all the dependencies are getting downloaded to gradle cache but not to the mavenLocal(~/.m2/repository). I have all the below but nothing worked. My gradle version is 8.8

repositories {
    mavenLocal()
}

export MAVEN_REPO=/Users/user_name/.m2/repository export M2_HOME=/Users/user_name/.m2/repository

gradle clean build --no-build-cache

gradle --refresh-dependencies

have the below plugins in my build.gradle :

plugins {
    id 'java-library'
    id 'idea'
    id 'eclipse'
    id 'maven-publish'
}
发布评论

评论列表(0)

  1. 暂无评论