mirror of https://github.com/apache/maven.git
PR: MNG-644
remove deprecated method git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@293340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cbcc49b306
commit
4afb4ba351
|
@ -34,7 +34,6 @@ import org.apache.tools.ant.PropertyHelper;
|
|||
import org.codehaus.plexus.util.introspection.ReflectionValueExtractor;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* A POM typedef.
|
||||
|
@ -114,7 +113,7 @@ public class Pom
|
|||
try
|
||||
{
|
||||
// TODO: should the profiles be constructed and passed in here? From Ant, or perhaps settings?
|
||||
mavenProject = builder.build( file, localRepository, Collections.EMPTY_LIST );
|
||||
mavenProject = builder.build( file, localRepository, null );
|
||||
}
|
||||
catch ( ProjectBuildingException e )
|
||||
{
|
||||
|
|
|
@ -259,30 +259,6 @@ public class DefaultMavenProjectBuilder
|
|||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use build( File, ArtifactRepository, ProfileManager)
|
||||
*/
|
||||
public MavenProject build( File projectDescriptor, ArtifactRepository localRepository, List activeExternalProfiles )
|
||||
throws ProjectBuildingException
|
||||
{
|
||||
ProfileManager profileManager = new DefaultProfileManager( container );
|
||||
|
||||
if ( activeExternalProfiles != null )
|
||||
{
|
||||
for ( Iterator it = activeExternalProfiles.iterator(); it.hasNext(); )
|
||||
{
|
||||
Profile profile = (Profile) it.next();
|
||||
|
||||
// since it's already determined to be active, we'll explicitly set it as activated in the mgr.
|
||||
profileManager.explicitlyActivate( profile.getId() );
|
||||
|
||||
profileManager.addProfile( profile );
|
||||
}
|
||||
}
|
||||
|
||||
return buildFromSourceFile( projectDescriptor, localRepository, profileManager );
|
||||
}
|
||||
|
||||
public MavenProject build( File projectDescriptor, ArtifactRepository localRepository,
|
||||
ProfileManager profileManager )
|
||||
throws ProjectBuildingException
|
||||
|
|
|
@ -35,12 +35,6 @@ public interface MavenProjectBuilder
|
|||
|
||||
String STANDALONE_SUPERPOM_VERSION = "2.0";
|
||||
|
||||
/**
|
||||
* @deprecated Use build( File, ArtifactRepository, ProfileManager)
|
||||
*/
|
||||
public MavenProject build( File projectDescriptor, ArtifactRepository localRepository, List activeExternalProfiles )
|
||||
throws ProjectBuildingException;
|
||||
|
||||
MavenProject build( File project, ArtifactRepository localRepository, ProfileManager globalProfileManager )
|
||||
throws ProjectBuildingException;
|
||||
|
||||
|
@ -48,14 +42,11 @@ public interface MavenProjectBuilder
|
|||
// These methods are used by the MavenEmbedder
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
MavenProject buildWithDependencies( File project,
|
||||
ArtifactRepository localRepository,
|
||||
ProfileManager globalProfileManager,
|
||||
TransferListener transferListener )
|
||||
MavenProject buildWithDependencies( File project, ArtifactRepository localRepository,
|
||||
ProfileManager globalProfileManager, TransferListener transferListener )
|
||||
throws ProjectBuildingException, ArtifactResolutionException;
|
||||
|
||||
MavenProject buildWithDependencies( File project,
|
||||
ArtifactRepository localRepository,
|
||||
MavenProject buildWithDependencies( File project, ArtifactRepository localRepository,
|
||||
ProfileManager globalProfileManager )
|
||||
throws ProjectBuildingException, ArtifactResolutionException;
|
||||
|
||||
|
|
Loading…
Reference in New Issue