[GRADLE-702] Maven deployer uses the repositories specified in the user's settings.xml, rather than those specified in the build file Created: 14/Oct/09 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.8 |
Fix Version/s: | 0.9-rc-1 |
Type: | Bug | ||
Reporter: | Adam Murdoch | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 0 |
Comments |
Comment by william wong [ 18/Jan/10 ] |
If I use gradle 0.8, what could I do to workaround this issue? |
Comment by william wong [ 18/Jan/10 ] |
I did some research on this issue and found user's settings.xml was loaded by When DeployTask.createDeploymentArtifactRepository is invoked, DeployTask first updates its repository setting with users' settings file via method updateRepositoryWithSettings. If there is any mirror defined in user's settings.xml, the mirror setting may override the repository url we provided in gradle file if the id is matched. Let say, the maven's user settings file (settings.xml) is ... And the build.gardle is ... } Then, the repository url 'http://d.e.f/nexus/content/repositories/releases/' provided in build.gradle will be overrided by the mirror url 'http://a.b.c/nexus/content/repositories/releases/' provided in user's setting file (settings.xml) Hope the above analyze helps the fix. |