mirror of https://github.com/apache/maven.git
Store the pom File object in the execution request instead of its path
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ac246fd96
commit
9637ac8c5a
|
@ -323,7 +323,7 @@ public class MavenEmbedder
|
|||
|
||||
try
|
||||
{
|
||||
pluginManager.verifyPlugin( plugin, project, session );
|
||||
pluginManager.verifyPlugin( plugin, project, session );
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -478,7 +478,7 @@ public class MavenEmbedder
|
|||
|
||||
Map handlers = findArtifactTypeHandlers( project );
|
||||
|
||||
//TODO: ok this is crappy, now there are active collections so when new artifact handlers
|
||||
//TODO: ok this is crappy, now there are active collections so when new artifact handlers
|
||||
// enter the system they should be available.
|
||||
|
||||
artifactHandlerManager.addHandlers( handlers );
|
||||
|
@ -508,7 +508,7 @@ public class MavenEmbedder
|
|||
try
|
||||
{
|
||||
projectBuildingResult = mavenProjectBuilder.buildWithDependencies(
|
||||
new File( request.getPomFile() ),
|
||||
request.getPom(),
|
||||
request.getLocalRepository(),
|
||||
request.getProfileManager() );
|
||||
}
|
||||
|
@ -652,8 +652,8 @@ public class MavenEmbedder
|
|||
|
||||
try
|
||||
{
|
||||
ContainerConfiguration cc = new DefaultContainerConfiguration()
|
||||
.addComponentDiscoverer( new MavenPluginDiscoverer() )
|
||||
ContainerConfiguration cc = new DefaultContainerConfiguration()
|
||||
.addComponentDiscoverer( new MavenPluginDiscoverer() )
|
||||
.addComponentDiscoveryListener( new MavenPluginCollector() )
|
||||
.setClassWorld( classWorld ).setParentContainer( configuration.getParentContainer() ).setName( "embedder" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue