I've gone back to the drawing board and came up with a simpler solution where
in ExternalResourceResolver
I check for any artifact existing and then only mark the artifact as
resolved by that repository if one is found.

The problem I'm having is handling POM dependencies. There doesn't seem to
be enough information passed in the Module Descriptor to know if the
dependency that is currently being resolved has POM packaging.

I tried one work around by looking at the ResolvedArtifact for the module
descriptor and if it ends in ".pom" using the PomReader to parse it and get
the packaging. That worked, but then I ran into issues with some integration
tests where the the artifact packaging and classifiers didn't match
(ArtifactDependenciesIntegrationTests.canUseClassifiersCombinedWithArtifactWithNonStandardPackaging).
It appears that it was relying on the fact that the artifacts aren't checked
before attempting resolution.

So I'm at a bit of a loss now about how to move forward. I can't move the
handling later because only one repository resolution is returned to the
resolve state to actually be requested.



--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Maven-local-issues-tp5711584p5711765.html
Sent from the gradle-dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to