[GRADLE-611] Gradle does not consider Maven repository defined in POM of a dependency Created: 29/Aug/09  Updated: 10/Feb/17  Resolved: 10/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: 0.7
Fix Version/s: None

Type: Bug
Reporter: Peter Niederwieser Assignee: Unassigned
Resolution: Won't Fix Votes: 2


 Description   

spock-tapestry depends on tapestry-ioc-5.1.0.5 depends on javassist-3.9.0.GA. Because the latter is not available from Maven Central, tapestry-ioc defines the JBoss Maven repository in its POM. However, Gradle doesn't seem to understand this and cannot resolve the javassist dependency. (The Maven build of spock-tapestry works fine.)



 Comments   
Comment by Hans Dockter [ 31/Aug/09 ]

This is a hard one. We use Ivy to read from Maven repositories. As long as Ivy doesn't offer such a functionality, we can't do anything about it. I think it would be cool if Ivy would switch to use the new Maven mercury module to access Maven repositories. That way heaps of there incompatibility problems would just vanish. In the future Gradle might have other options but at the moment you can only file a Jira at Ivy.

Comment by Paul Gier [ 18/May/10 ]

IMO, the current behavior of Gradle/Ivy is correct. At least in the default case I do not want repositories added to my build by dependencies. It can cause problems because it makes your build less predictable when you don't have full control over where artifacts are downloaded. There is more information about this in the Maven wiki (http://docs.codehaus.org/display/MAVEN/Artifact+resolution+and+repository+discovery)

Related to MNG-3056

Comment by Hans Dockter [ 18/May/10 ]

@Paul Thanks for pointing this out.

Yet I'm looking forward to writing an Ivy resolver that uses Maven Mercury under the hood. It is a hard and continuos job to reverse engineer Maven resolution. Ivy is doing a pretty good job. But if there are bugs we rely on Ivy to be fixed and if they are fixed we have to wait for an Ivy release or we need to go with an ivy snapshot. In my opinion Ivy should have used Maven for analyzing the pom instead of reverse engineering it. As you know, they could have used the maven ant tasks for this. Anyhow, I talked with Jason van Zyl recently. He told me that the current Mercury sources are not relevant any more. Sonatype is doing a complete rewrite which is not published yet. Once this is available we will start using it for 100 percent compatible Maven 3 resolution.

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 10/Feb/17 ]

Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved.

Generated at Wed Jun 30 11:34:22 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.