[
https://jira.codehaus.org/browse/MNG-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason van Zyl closed MNG-5294.
------------------------------
Resolution: Won't Fix
> 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)