Hello Matt.
This doesn't exists anymore in 3.0.x.

So for the maven3 integration in Hudson/Jenkins, I have build a "kind"
of embedder which you can use at least for read projects.
It should work to read projects and resolve dependencies.

You can have a look at the unit tests here [1]

HTH,
-- 
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy

[1] 
https://github.com/jenkinsci/lib-jenkins-maven-embedder/blob/master/src/test/java/hudson/maven/TestMavenEmbedderSimpleProject.java

2011/2/10 mraible <m...@raibledesigns.com>:
>
> I'm trying to upgrade the dependencies of the appfuse-maven-plugin to use the
> latest Maven dependencies to solve an issue with using Maven 3.
>
> http://issues.appfuse.org/browse/APF-1220
>
> However, when I upgrade to maven-embedder 3.0.2, there's a couple classes
> missing: MavenEmbedder and MavenEmbedderConsoleLogger. I'm using these as
> indicated below.
>
>    private MavenProject createProjectFromPom(File pom) {
>        MavenEmbedder maven = new MavenEmbedder();
>        maven.setOffline(true);
>
> maven.setClassLoader(Thread.currentThread().getContextClassLoader());
>        maven.setLogger(new MavenEmbedderConsoleLogger());
>
>        MavenProject p = null;
>
>        try {
>            maven.setAlignWithUserInstallation(true);
>            maven.start();
>            p = maven.readProjectWithDependencies(pom);
>            maven.stop();
>        } catch (Exception e) {
>            e.printStackTrace();
>        }
>
>        return p;
>    }
>
> Is it possible to do something like this with 3.0.2 and will it help me
> solve this error?
>
> A required class was missing while executing
> org.appfuse.plugins:appfuse-maven-plugin:2.1.0-SNAPSHOT:full-source:
> org/codehaus/plexus/embed/Embedder
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Upgrading-maven-embedder-from-2-0-4-to-3-0-2-tp3379984p3379984.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to