Hi John, 
Thanks very much. That's exactly what I needed to know.
I've managed to get things working quite well now.

Cheers,
Kevin



On Sat, 2007-05-26 at 12:27 -0400, John Casey wrote:

> Usually:
> 
> 1. the artifact set is the set of direct-dependency artifacts from  
> your project (using project.createArtifacts(..) to create them if  
> they're missing)
> 
> 2. the originating artifact is project.getArtifact()
> 
> 3. the metadataSource is a component, so if you're calling  
> resolveTransitively from a mojo, use:
> 
> /**
>   * @component
>   */
> private ArtifactMetadataSource metadataSource;
> 
> HTH,
> 
> -john
> 
> 
> On May 25, 2007, at 3:32 PM, Kevin Stembridge wrote:
> 
> > Hi folks,
> > I'm writing a patch for the webstart-maven-plugin and I'm having some
> > trouble trying to use ArtifactResolver to resovle transitive
> > dependencies.
> >
> > I've been trying to use one of the  
> > ArtifactResolver.resolveTransitively
> > methods, but I keep bumping into problems. These methods are not
> > javadoc'ed at all and I'm getting lost in the source code so I'm  
> > hoping
> > someone can give me a bit of guidance.
> >
> > So, for this method signature:
> >
> > public ArtifactResolutionResult resolveTransitively(Set artifacts,
> >
> >                                                     Artifact  
> > originatingArtifact,
> >                                                      
> > ArtifactRepository localRepository,
> >                                                     List  
> > remoteRepositories,
> >                                                      
> > ArtifactMetadataSource source,
> >                                                     ArtifactFilter  
> > filter)
> >                                              throws  
> > ArtifactResolutionException,
> >                                                      
> > ArtifactNotFoundException
> >
> >
> > ... what do I put in the artifacts set, what is originatingArtifact  
> > and
> > where do I get the ArtifactMetaDataSource from?
> >
> > Any help appreciated.
> >
> > Cheers,
> > Kevin
> 
> ---
> John Casey
> Committer and PMC Member, Apache Maven
> mail: jdcasey at commonjava dot org
> blog: http://www.ejlife.net/blogs/john
> 
> 

Reply via email to