-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue 350 #361
Fix for issue 350 #361
Conversation
…ed by Herve. Now available on maven-shared trunk
…hat we can resolve dependencies from Wagon extensions.
NB the maven-dependency-tree-2.2-SNAPSHOT should now be available from the Apache SNAPSHOT repository. |
HOLD - For some reason MavenSession.getTopLevelProject().getClassRealm() is returning null in AMP when it doesn't in https://github.com/william-ferguson-au/example-resolution-plugin/tree/switch-classloader |
Do we need a specific set of pull requests to help troubleshoot this? |
Just base AMP + this pull request highlights problem. |
ok, using resolving-reactor-deps-4 and this PR, plugin built then against my test project I see your NPE in: at org.apache.maven.shared.dependency.graph.internal.DefaultDependencyGraphBuilder.canFindCoreClass(DefaultDependencyGraphBuilder.java:119) look right? |
Yep, that's the failure I am seeing. |
The core class it is trying to load is org.eclipse.aether.artifact.Artifact but the context class loader is null. |
?? What do you mean? What core class? eclipse.aether will be loaded if you are running Maven-3.1+ |
The NPE on line 119 is: |
Yeah. The problem is that the Thread CCL is null. Which is because MavenSession#topLevelProject#classRealm is null. |
Comment here if its ready to be pulled in.. |
I feel like I'm getting close but may not be able to get back to it until So I am trying to narrow the distance between the too to work out the On Thu, May 22, 2014 at 8:24 AM, Manfred Moser notifications@github.comwrote:
|
I am pulling this in so we have a common base again ... |
Fair call. Are we able (or should we) to take maven-dependency-tree from Apache snapshots now? Maybe add a temporary repository to our pom? |
Have you talked to Herve about releasing it? |
No. I think he believes that another implementation is possible and is looking into that (basically the code he showed me suggests that the DependencyResolver should already have been finding the snapshots, so it's a question of why it wasn't working in the first place). Aren't the Apache snapshots released automatically once the code is committed? |
I'm just looking for a way that everyone can build straight off the AMP master without having to first build my MDT branch. Common base etc. |
Can now support Wagon extensions like the s3wagon when resolving dependencies at start of build (necessary to handle AAR dependencies correctly)