Thanks for these links Benjamin. I'm working on converting the old 2.0.4
embedder code, and I managed to get things to compile by reading the
imports/code in the m2eclipse link you sent, adding jars to my classpath
and tweaking calls, wash, rinse, repeat. So far I have the following
jars on the classpath:
maven-artifact-3.0.3.jar
maven-compat-3.0.3.jar
maven-core-3.0.3.jar
maven-embedder-3.0.3.jar
maven-model-3.0.3.jar
maven-model-builder-3.0.3.jar
Please holler if you see any I should not need.
Same goes for ones I am missing.
Of course when I run the code, no surprise, it breaks. I'm pretty sure
required plexus/bootstrapping classes (and/or aether equivalents) are
missing. Could you point me to how m2eclipse handles this? Is it as
simple as including a couple plexus jars? Which ones, and/or can you
point me to the canonical/minimal example?
Thanks again,
Dan
Subject:
Re: Maven Embedder 2.0.4 replacement; Where to start?
From:
Benjamin Bentmann <benjamin.bentm...@udo.edu>
Date:
Thu, 24 Feb 2011 21:26:19 +0100
To:
Maven Developers List <dev@maven.apache.org>
Dan Rollo wrote:
> Can someone point me to a good starting point to learn about how to embed
> maven 3.x?
> [...]
> I'm looking for a "start reading the source in file xxx" to get started
> with.
http://svn.apache.org/repos/asf/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenImpl.java
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org