mirror of https://github.com/apache/maven.git
o adding backward compat method in the project builder
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@597162 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
deca7349ff
commit
40326eef36
|
@ -405,7 +405,7 @@ public class MavenEmbedder
|
|||
|
||||
try
|
||||
{
|
||||
projectBuildingResult = mavenProjectBuilder.buildWithDependencies(
|
||||
projectBuildingResult = mavenProjectBuilder.buildProjectWithDependencies(
|
||||
request.getPom(),
|
||||
request.getLocalRepository(),
|
||||
request.getProfileManager() );
|
||||
|
|
|
@ -247,7 +247,17 @@ public class DefaultMavenProjectBuilder
|
|||
return superProject;
|
||||
}
|
||||
|
||||
public MavenProjectBuildingResult buildWithDependencies( File projectDescriptor,
|
||||
/** @since 2.0.x */
|
||||
public MavenProject buildWithDependencies( File projectDescriptor,
|
||||
ArtifactRepository localRepository,
|
||||
ProfileManager profileManager )
|
||||
throws ProjectBuildingException
|
||||
{
|
||||
return buildProjectWithDependencies( projectDescriptor, localRepository, profileManager ).getProject();
|
||||
}
|
||||
|
||||
/** @since 2.1 */
|
||||
public MavenProjectBuildingResult buildProjectWithDependencies( File projectDescriptor,
|
||||
ArtifactRepository localRepository,
|
||||
ProfileManager profileManager )
|
||||
throws ProjectBuildingException
|
||||
|
|
|
@ -62,12 +62,17 @@ public interface MavenProjectBuilder
|
|||
ProfileManager globalProfileManager )
|
||||
throws ProjectBuildingException;
|
||||
|
||||
|
||||
MavenProjectBuildingResult buildWithDependencies( File project,
|
||||
MavenProject buildWithDependencies( File project,
|
||||
ArtifactRepository localRepository,
|
||||
ProfileManager globalProfileManager )
|
||||
throws ProjectBuildingException;
|
||||
|
||||
MavenProjectBuildingResult buildProjectWithDependencies( File project,
|
||||
ArtifactRepository localRepository,
|
||||
ProfileManager globalProfileManager )
|
||||
throws ProjectBuildingException;
|
||||
|
||||
|
||||
MavenProject buildFromRepository( Artifact artifact,
|
||||
List remoteArtifactRepositories,
|
||||
ArtifactRepository localRepository )
|
||||
|
@ -81,7 +86,6 @@ public interface MavenProjectBuilder
|
|||
throws ProjectBuildingException;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
* @throws ProjectBuildingException
|
||||
*/
|
||||
|
|
|
@ -106,7 +106,7 @@ public abstract class AbstractMavenProjectTestCase
|
|||
protected MavenProject getProjectWithDependencies( File pom )
|
||||
throws Exception
|
||||
{
|
||||
return projectBuilder.buildWithDependencies( pom, getLocalRepository(), null ).getProject();
|
||||
return projectBuilder.buildWithDependencies( pom, getLocalRepository(), null );
|
||||
}
|
||||
|
||||
protected MavenProject getProject( File pom )
|
||||
|
|
Loading…
Reference in New Issue