Hi,

Works great! I have the MavenProject, but since I'm running 
project-less(@requiresProject false), the lazy initialized dependency artifacts 
are not present. 
What API should I use to obtain the entire dependency (direct and transitive) 
for the obtain MavenProject?

Thanks!

Asaf 

-- 
Asaf Mesika
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Sunday 1 April 2012 at 14:37, Vincent Latombe wrote:

> Hello,
> 
> once resolved, get the File using
> org.sonatype.aether.artifact.Artifact#getFile
> 
> then use org.apache.maven.project.ProjectBuilder#build(File,
> ProjectBuildingRequest) to get the MavenProject.
> 
> Vincent
> 
> 
> 2012/4/1 Asaf Mesika <asaf.mes...@gmail.com (mailto:asaf.mes...@gmail.com)>
> 
> > Hi,
> > 
> > I'm writing a Mojo, and I have a question:
> > 
> > I have a piece of code which resolves an Aether Artifact based on its GAV
> > string, from specific repository defined programmatic.
> > 
> > Once I have the "org.sonatype.aether.artifact.Artifact" at hand - how do I
> > convert it to a MavenProject or any other pojo which enables me to
> > interrogate it's pom:
> > Get a list of its dependencies and transitive dependencies, its SCM info,
> > etc?
> > 
> > It's worth noting my mojo is running with @requiresProject false
> > 
> > 
> > Thanks!
> > 
> > Asaf 

Reply via email to