[GRADLE-2366] Have mavenLocal() check M2_HOME/conf/settings.xml Created: 27/Jun/12  Updated: 04/Jan/13  Resolved: 11/Jul/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.1-rc-1

Type: Improvement
Reporter: Gradle Forums Assignee: René Gröschke (Inactive)
Resolution: Fixed Votes: 0


 Description   

Would be useful if mavenLocal() method checked M2_HOME/conf/settings.xml for a local Maven cache location before constructing it from user.home.

As per this thread - [1]http://forums.gradle.org/gradle/topic....

I would be happy to submit some code if you are welcoming contributors.

cheers
----------------------------------------------------------------------------------------
[1] http://forums.gradle.org/gradle/topics/have_dependencies_resolved_from_remote_maven_repo_installed_into_local_maven_repo



 Comments   
Comment by Gradle Forums [ 27/Jun/12 ]

Contributions are always welcome. You can look at org.gradle.api.internal.artifacts.mvnsettings.DefaultLocalMavenCacheLocator to get started.

You might also find [1]http://gradle.org/contribute has some useful pointers.
Thanks!
----------------------------------------------------------------------------------------
[1] http://gradle.org/contribute

Comment by Gradle Forums [ 27/Jun/12 ]

Shouldn't it be the other way around? That is, a `settings.xml` in `user.home` should override whatever is inside `M2_HOME/conf/settings.xml`?

Comment by Gradle Forums [ 27/Jun/12 ]

Yes. See this thread for some discussion on maven settings.xml. [1]http://stackoverflow.com/questions/12.... And see this for Gradle [2]http://gradle.org/docs/current/usergu...
----------------------------------------------------------------------------------------
[1] http://stackoverflow.com/questions/1261215/which-maven-settings-xml-files
[2] http://gradle.org/docs/current/userguide/userguide_single.html#properties

Generated at Wed Jun 30 12:19:57 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.