[ 
https://jira.codehaus.org/browse/MNG-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=348005#comment-348005
 ] 

Jason van Zyl commented on MNG-5294:
------------------------------------

Maybe someday in the future we'll go back to this but IDEs are just using Maven 
directly, or using all the components directly like in M2E.

> Attempt to restore backward compatibility for the MavenEmbedder
> ---------------------------------------------------------------
>
>                 Key: MNG-5294
>                 URL: https://jira.codehaus.org/browse/MNG-5294
>             Project: Maven 2 & 3
>          Issue Type: Task
>            Reporter: Jason van Zyl
>            Assignee: Jason van Zyl
>
> Problem reported by Matt Raible where Appfuse uses the MavenEmbedder in the 
> app fuse-maven-plugin:full-source goal:
> http://issues.appfuse.org/browse/APF-1220
> Here is the specific block of code used in the Appfuse Plugin:
> {code}
>     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;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to