> has anyone tried writing a service with a large dependency graph?
Yep
>
> I wrote an implementation of Resolver using Maven 3's Aether API and
> it seems to run pretty fast.
Thats planned, I just havent gotten to it (http://jira.rio-project.org/browse/RIO-290). Care to share? :) Perhaps you could contribute what you've got to the referenced issue?
>
> before I go down the route of trying to use that ,i wanted to check to
> see if maybe something is not right with my setup or maybe if
> SimpleResolver is not actually slow and it's just hung doing the
> initial population of the local maven repo.
If it's a complicated dependency graph SR can be very slow
> ok - I'm still trying to get the hang of git here, trying to learn too many things at once.
>
> This patch (now attached to JIRA) somehow has an earlier revision of my changes and then another change set, but I'm guessing if you apply it it should come out with a working version. Let me know and I can make another one.
Looks great, thanks!
>
> Probably lots of things worth stealing here, not sure if my implementation of the interface is even correct (i noticed RemoteRepositories are passed into Resolver, that I don't handle, i'm guessing it's because the opstrings support the specification of repos somehow).
The repos are obtained from reading the pom at deployment and sent along with the ServiceElement to a Cybernode when the service is being instantiated.
>
> Any hints on how to set it up so the ServiceLocator finds my instance rather than SimpleResolver? I wasn't able to grok where that binding happens.
Under resolver/src/main/resources we'll need to add a file named:
META-INF.services/org.rioprojecy.resolver.Resolver, and within that file add a single line:
org.rioproject.resolver.aether.AetherResolver
This will allow the ServiceLocator to load the AR when ResolverHelper.getInstance() is invoked
Dennis
The repos are obtained from reading the pom at deployment and sent along with the ServiceElement to a Cybernode when the service is being instantiated.
> ok - I'm still trying to get the hang of git here, trying to learn too many things at once.
>
> This patch (now attached to JIRA) somehow has an earlier revision of my changes and then another change set, but I'm guessing if you apply it it should come out with a working version. Let me know and I can make another one.
Actually, it would be helpful if you could send your AetherService and AetherResolver.
Thanks
Dennis