Re: Converting an Artifact (Aether) to MavenProject

2012-04-02 Thread Sascha Vogt
Hi Asaf, Am 01.04.2012 22:50, schrieb Asaf Mesika: 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)

Re: Converting an Artifact (Aether) to MavenProject

2012-04-01 Thread Vincent Latombe
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 Hi, I'm writing a Mojo, and I have a

Re: Converting an Artifact (Aether) to MavenProject

2012-04-01 Thread Asaf Mesika
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

Converting an Artifact (Aether) to MavenProject

2012-03-31 Thread Asaf Mesika
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