You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by nicolas de loof <ni...@apache.org> on 2008/11/19 11:03:56 UTC

embedder howto

Hi,
How can I use maven embeddder to resolve dependencies from a a maven Model
object ?

My goal is to retrieve all dependencies declared by a mavenProject plugin.
I've created the Artifact based on mavenProject.getPlugin, resolved it to
get it's pom in localrepository, then used embedder.readModel() to get it as
a new maven Model.

The best candidate method seems to be readProjectWithDependencies, is this
the right way ? In such case, what is the simpliest way to create a
new MavenExecutionRequest from a Model object ? How to retrieve the resolved
dependencies ?

Nicolas