Pax url handlers such as mvn one are implementing the specs for url handlers so it can only return an input stream. You may however look into it and extract the part where we detect all the versions. Even so, pax url handler is not a full maven resolver so it can not resolve the dependencies especially the transitive ones as that is not the scope.
You may however take a look at the new maven embedder from maven 3 as it has been refactored to be easy embeddable in an application and should support what are you looking for. If you do not need the transitive dependencies or if you want to implement that part by yourself you can take a look at Pax Scanner POM that is scanning a given in maven pom (e.g. via a mvn: pax url) and return all the dependencies. In the future I'm planning to implement a new Pax Scanner that is based on Maven Mercury (actually the code is already into svn) that will also scan the transitive dependencies. On Tue, Oct 27, 2009 at 3:05 PM, Leen Toelen <toe...@gmail.com> wrote: > Hi, > > is there an difficult way using pax-url to fetch all versions of a maven > bundle from its repository, and install (and start) a specific version (with > all dependencies). A lot like what pax provision does, but at runtime. > > :-) > > regards, > Leen > > On Tue, Oct 27, 2009 at 1:53 PM, Alin Dreghiciu <adreghi...@gmail.com>wrote: > >> No. >> >> On Tue, Oct 27, 2009 at 2:10 PM, Leen Toelen <toe...@gmail.com> wrote: >> >>> Hi, >>> >>> is there an easy way using pax-url to fetch all versions of a maven >>> bundle from its repository, and install (and start) a specific version (with >>> all dependencies). A lot like what pax provision does, but at runtime. >>> >>> regards, >>> Leen >>> >>> _______________________________________________ >>> general mailing list >>> general@lists.ops4j.org >>> http://lists.ops4j.org/mailman/listinfo/general >>> >>> >> >> >> -- >> Alin Dreghiciu >> Software Developer >> My profile: http://www.linkedin.com/in/alindreghiciu >> My blog: http://adreghiciu.blogspot.com >> http://www.ops4j.org - New Energy for OSS Communities - Open >> Participation Software. >> http://www.qi4j.org - New Energy for Java - Domain Driven Development. >> >> _______________________________________________ >> general mailing list >> general@lists.ops4j.org >> http://lists.ops4j.org/mailman/listinfo/general >> >> > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > > -- Alin Dreghiciu Software Developer My profile: http://www.linkedin.com/in/alindreghiciu My blog: http://adreghiciu.blogspot.com http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org - New Energy for Java - Domain Driven Development.
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general