org.apache.maven.project
Interface MavenProjectBuilder

All Known Implementing Classes:
DefaultMavenProjectBuilder

public interface MavenProjectBuilder


Field Summary
static String ROLE
           
static String STANDALONE_SUPERPOM_ARTIFACTID
           
static String STANDALONE_SUPERPOM_GROUPID
           
static String STANDALONE_SUPERPOM_VERSION
           
 
Method Summary
 MavenProject build(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager)
           
 MavenProject build(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager, boolean checkDistributionManagementStatus)
           
 MavenProject build(File pom, ProjectBuilderConfiguration config)
           
 MavenProject build(File pom, ProjectBuilderConfiguration config, boolean checkDistributionManagementStatus)
           
 MavenProject buildFromRepository(Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository)
          Build the artifact from the local repository, resolving it if necessary.
 MavenProject buildFromRepository(Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubModel)
          Build the artifact from the local repository, resolving it if necessary.
 MavenProject buildStandaloneSuperProject(ArtifactRepository localRepository)
          Deprecated. Use buildStandaloneSuperProject(ProjectBuilderConfiguration) instead.
 MavenProject buildStandaloneSuperProject(ArtifactRepository localRepository, ProfileManager profileManager)
          Deprecated. Use buildStandaloneSuperProject(ProjectBuilderConfiguration) instead.
 MavenProject buildStandaloneSuperProject(ProjectBuilderConfiguration config)
           
 MavenProject buildWithDependencies(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager)
           
 MavenProject buildWithDependencies(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager, org.apache.maven.wagon.events.TransferListener transferListener)
           
 

Field Detail

ROLE

static final String ROLE

STANDALONE_SUPERPOM_GROUPID

static final String STANDALONE_SUPERPOM_GROUPID
See Also:
Constant Field Values

STANDALONE_SUPERPOM_ARTIFACTID

static final String STANDALONE_SUPERPOM_ARTIFACTID
See Also:
Constant Field Values

STANDALONE_SUPERPOM_VERSION

static final String STANDALONE_SUPERPOM_VERSION
See Also:
Constant Field Values
Method Detail

build

MavenProject build(File project,
                   ArtifactRepository localRepository,
                   ProfileManager globalProfileManager)
                   throws ProjectBuildingException
Throws:
ProjectBuildingException

build

MavenProject build(File project,
                   ArtifactRepository localRepository,
                   ProfileManager globalProfileManager,
                   boolean checkDistributionManagementStatus)
                   throws ProjectBuildingException
Throws:
ProjectBuildingException

buildWithDependencies

MavenProject buildWithDependencies(File project,
                                   ArtifactRepository localRepository,
                                   ProfileManager globalProfileManager,
                                   org.apache.maven.wagon.events.TransferListener transferListener)
                                   throws ProjectBuildingException,
                                          ArtifactResolutionException,
                                          ArtifactNotFoundException
Throws:
ProjectBuildingException
ArtifactResolutionException
ArtifactNotFoundException

buildWithDependencies

MavenProject buildWithDependencies(File project,
                                   ArtifactRepository localRepository,
                                   ProfileManager globalProfileManager)
                                   throws ProjectBuildingException,
                                          ArtifactResolutionException,
                                          ArtifactNotFoundException
Throws:
ProjectBuildingException
ArtifactResolutionException
ArtifactNotFoundException

buildFromRepository

MavenProject buildFromRepository(Artifact artifact,
                                 List remoteArtifactRepositories,
                                 ArtifactRepository localRepository)
                                 throws ProjectBuildingException
Build the artifact from the local repository, resolving it if necessary.

Parameters:
artifact - the artifact description
localRepository - the local repository
remoteArtifactRepositories - the remote repository list
Returns:
the built project
Throws:
ProjectBuildingException

buildFromRepository

MavenProject buildFromRepository(Artifact artifact,
                                 List remoteArtifactRepositories,
                                 ArtifactRepository localRepository,
                                 boolean allowStubModel)
                                 throws ProjectBuildingException
Build the artifact from the local repository, resolving it if necessary.

Parameters:
artifact - the artifact description
localRepository - the local repository
remoteArtifactRepositories - the remote repository list
allowStubModel - return a stub if the POM is not found
Returns:
the built project
Throws:
ProjectBuildingException

buildStandaloneSuperProject

MavenProject buildStandaloneSuperProject(ArtifactRepository localRepository)
                                         throws ProjectBuildingException
Deprecated. Use buildStandaloneSuperProject(ProjectBuilderConfiguration) instead.

Throws:
ProjectBuildingException

buildStandaloneSuperProject

MavenProject buildStandaloneSuperProject(ArtifactRepository localRepository,
                                         ProfileManager profileManager)
                                         throws ProjectBuildingException
Deprecated. Use buildStandaloneSuperProject(ProjectBuilderConfiguration) instead.

need to pass a profilemanager with correct context (eg. with execution properties)

Throws:
ProjectBuildingException

buildStandaloneSuperProject

MavenProject buildStandaloneSuperProject(ProjectBuilderConfiguration config)
                                         throws ProjectBuildingException
Throws:
ProjectBuildingException

build

MavenProject build(File pom,
                   ProjectBuilderConfiguration config)
                   throws ProjectBuildingException
Throws:
ProjectBuildingException

build

MavenProject build(File pom,
                   ProjectBuilderConfiguration config,
                   boolean checkDistributionManagementStatus)
                   throws ProjectBuildingException
Throws:
ProjectBuildingException


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.