Reading a maven settings.xml when building with gradle?

前端 未结 6 2105
孤独总比滥情好
孤独总比滥情好 2021-01-30 18:21

I have a maven settings.xml located in:

 /home/u123/.m2/settings.xml

where I specify a remote maven repository:



        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 18:48

    Please use mavenLocal() in your repositories section of build.gradle file. This should read ~/.m2/settings.xml file in your home directory.

    repositories {
        mavenCentral()
        mavenLocal()
    }
    

提交回复
热议问题