[MNG-4041] embedder returns stale maven project state

Submitted by: Igor Fedorenko

o Committed additional patch with bugfixes

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786811 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-20 13:17:36 +00:00
parent 93f90df0de
commit 1c0a588c90
2 changed files with 3 additions and 2 deletions

View File

@ -222,7 +222,8 @@ public class DefaultPluginCache
&& eq( aD.getArtifactId(), bD.getArtifactId() ) //
&& eq( aD.getVersion(), bD.getVersion() ) //
&& eq( aD.getType(), bD.getType() ) //
&& eq( aD.getClassifier(), bD.getScope() );
&& eq( aD.getClassifier(), bD.getClassifier() ) //
&& eq( aD.getScope(), bD.getScope() );
r &= exclusionsEquals( aD.getExclusions(), bD.getExclusions() );

View File

@ -480,7 +480,7 @@ public class DefaultPluginManager
}
}
throw new PluginManagerException( plugin, "Could not create ClassRealm", (Throwable) null );
throw new PluginManagerException( plugin, "Could not create ClassRealm for plugin " + baseRealmId, (Throwable) null );
}
private Mojo getConfiguredMojo( MavenSession session, MavenProject project, MojoExecution mojoExecution, ClassRealm pluginRealm )