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@587998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
324c1fcd1c
commit
64e0d64a56
|
@ -467,7 +467,7 @@ public class MavenEmbedder
|
|||
// If the artifact handlers are not loaded up-front then this dependency element is not
|
||||
// registered as an artifact and is not added to the classpath elements.
|
||||
|
||||
MavenProject project = readProject( new File( request.getPomFile() ) );
|
||||
MavenProject project = readProject( request.getPom() );
|
||||
|
||||
Map handlers = findArtifactTypeHandlers( project );
|
||||
|
||||
|
|
|
@ -199,9 +199,9 @@ public class DefaultMavenExecutionRequestPopulator
|
|||
// look for the standard POM.
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if ( request.getPomFile() != null )
|
||||
if ( request.getPom() != null )
|
||||
{
|
||||
request.setBaseDirectory( new File( request.getPomFile() ) );
|
||||
request.setBaseDirectory( request.getPom() );
|
||||
}
|
||||
else if ( request.getBaseDirectory() != null )
|
||||
{
|
||||
|
@ -213,7 +213,7 @@ public class DefaultMavenExecutionRequestPopulator
|
|||
pom = new File( request.getBaseDirectory(), Maven.POMv4 );
|
||||
}
|
||||
|
||||
request.setPomFile( pom.getAbsolutePath() );
|
||||
request.setPom( pom );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue