mirror of https://github.com/apache/maven.git
o Fixed name inconsistencies
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@780121 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85205e0b57
commit
4d45d00881
|
@ -100,7 +100,7 @@ public class DefaultMaven
|
|||
//TODO: We really need to get rid of this requirement in here. If we know there is no project present
|
||||
if ( projects.isEmpty() )
|
||||
{
|
||||
MavenProject project = projectBuilder.buildStandaloneSuperProject( request.getProjectBuilderRequest() );
|
||||
MavenProject project = projectBuilder.buildStandaloneSuperProject( request.getProjectBuildingRequest() );
|
||||
projects.put( ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() ), project );
|
||||
request.setProjectPresent( false );
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ public class DefaultMaven
|
|||
|
||||
for ( File file : files )
|
||||
{
|
||||
MavenProject project = projectBuilder.build( file, request.getProjectBuilderRequest() );
|
||||
MavenProject project = projectBuilder.build( file, request.getProjectBuildingRequest() );
|
||||
|
||||
if ( ( project.getPrerequisites() != null ) && ( project.getPrerequisites().getMaven() != null ) )
|
||||
{
|
||||
|
|
|
@ -234,7 +234,7 @@ public class DefaultMavenExecutionRequest
|
|||
|
||||
public void setProjectBuildingConfiguration( ProjectBuildingRequest projectBuildingConfiguration )
|
||||
{
|
||||
this.projectBuilderRequest = projectBuildingConfiguration;
|
||||
this.projectBuildingRequest = projectBuildingConfiguration;
|
||||
}
|
||||
|
||||
public List<String> getActiveProfiles()
|
||||
|
@ -617,7 +617,7 @@ public class DefaultMavenExecutionRequest
|
|||
private Settings settings;
|
||||
|
||||
// calculated from request attributes.
|
||||
private ProjectBuildingRequest projectBuilderRequest;
|
||||
private ProjectBuildingRequest projectBuildingRequest;
|
||||
|
||||
public MavenExecutionRequest setSettings( Settings settings )
|
||||
{
|
||||
|
@ -706,21 +706,21 @@ public class DefaultMavenExecutionRequest
|
|||
}
|
||||
|
||||
//TODO: this does not belong here.
|
||||
public ProjectBuildingRequest getProjectBuilderRequest()
|
||||
public ProjectBuildingRequest getProjectBuildingRequest()
|
||||
{
|
||||
if ( projectBuilderRequest == null )
|
||||
if ( projectBuildingRequest == null )
|
||||
{
|
||||
projectBuilderRequest = new DefaultProjectBuildingRequest();
|
||||
projectBuilderRequest.setLocalRepository( getLocalRepository() );
|
||||
projectBuilderRequest.setExecutionProperties( getProperties() );
|
||||
projectBuilderRequest.setRemoteRepositories( getRemoteRepositories() );
|
||||
projectBuilderRequest.setActiveProfileIds( getActiveProfiles() );
|
||||
projectBuilderRequest.setInactiveProfileIds( getInactiveProfiles() );
|
||||
projectBuilderRequest.setProfiles( getProfiles() );
|
||||
projectBuilderRequest.setProcessPlugins( true );
|
||||
projectBuildingRequest = new DefaultProjectBuildingRequest();
|
||||
projectBuildingRequest.setLocalRepository( getLocalRepository() );
|
||||
projectBuildingRequest.setExecutionProperties( getProperties() );
|
||||
projectBuildingRequest.setRemoteRepositories( getRemoteRepositories() );
|
||||
projectBuildingRequest.setActiveProfileIds( getActiveProfiles() );
|
||||
projectBuildingRequest.setInactiveProfileIds( getInactiveProfiles() );
|
||||
projectBuildingRequest.setProfiles( getProfiles() );
|
||||
projectBuildingRequest.setProcessPlugins( true );
|
||||
}
|
||||
|
||||
return projectBuilderRequest;
|
||||
return projectBuildingRequest;
|
||||
}
|
||||
|
||||
public MavenExecutionRequest addProfile( Profile profile )
|
||||
|
|
|
@ -202,5 +202,5 @@ public interface MavenExecutionRequest
|
|||
File getUserToolchainsFile();
|
||||
MavenExecutionRequest setUserToolchainsFile( File userToolchainsFile );
|
||||
|
||||
ProjectBuildingRequest getProjectBuilderRequest();
|
||||
ProjectBuildingRequest getProjectBuildingRequest();
|
||||
}
|
||||
|
|
|
@ -132,9 +132,9 @@ public class MavenSession
|
|||
return currentProject;
|
||||
}
|
||||
|
||||
public ProjectBuildingRequest getProjectBuilderRequest()
|
||||
public ProjectBuildingRequest getProjectBuildingRequest()
|
||||
{
|
||||
return request.getProjectBuilderRequest();
|
||||
return request.getProjectBuildingRequest();
|
||||
}
|
||||
|
||||
public List<String> getPluginGroups()
|
||||
|
|
|
@ -278,7 +278,7 @@ public class MavenEmbedder
|
|||
{
|
||||
getLogger().debug( "Building MavenProject instance: " + mavenProject );
|
||||
|
||||
return projectBuilder.build( mavenProject, request.getProjectBuilderRequest() );
|
||||
return projectBuilder.build( mavenProject, request.getProjectBuildingRequest() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -308,7 +308,7 @@ public class MavenEmbedder
|
|||
|
||||
try
|
||||
{
|
||||
MavenProjectBuildingResult projectBuildingResult = projectBuilder.buildProjectWithDependencies( request.getPom(), request.getProjectBuilderRequest() );
|
||||
MavenProjectBuildingResult projectBuildingResult = projectBuilder.buildProjectWithDependencies( request.getPom(), request.getProjectBuildingRequest() );
|
||||
|
||||
result.setProject( projectBuildingResult.getProject() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue