Reading a maven settings.xml when building with gradle?

前端 未结 6 2054
孤独总比滥情好
孤独总比滥情好 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:21

    You have to declare all repositories in your Gradle build script. settings.xml is only used to find the location of the local Maven repository, for example when resolving repositories { mavenLocal() }.

提交回复
热议问题