public interface MavenProjectBuilder
Modifier and Type | Field and Description |
---|---|
static String |
ROLE |
static String |
STANDALONE_SUPERPOM_ARTIFACTID |
static String |
STANDALONE_SUPERPOM_GROUPID |
static String |
STANDALONE_SUPERPOM_VERSION |
Modifier and Type | Method and Description |
---|---|
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.
|
MavenProject |
buildStandaloneSuperProject(ArtifactRepository localRepository,
ProfileManager profileManager)
Deprecated.
|
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) |
void |
calculateConcreteState(MavenProject project,
ProjectBuilderConfiguration config)
Variant of
calculateConcreteState(MavenProject, ProjectBuilderConfiguration, boolean)
which assumes that project references should be processed. |
void |
calculateConcreteState(MavenProject project,
ProjectBuilderConfiguration config,
boolean processReferences)
Up to this point, the build section of the POM remains uninterpolated except for the artifact coordinates
it contains.
|
static final String ROLE
static final String STANDALONE_SUPERPOM_GROUPID
static final String STANDALONE_SUPERPOM_ARTIFACTID
static final String STANDALONE_SUPERPOM_VERSION
MavenProject build(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager) throws ProjectBuildingException
ProjectBuildingException
MavenProject build(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager, boolean checkDistributionManagementStatus) throws ProjectBuildingException
ProjectBuildingException
MavenProject buildWithDependencies(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager, org.apache.maven.wagon.events.TransferListener transferListener) throws ProjectBuildingException, ArtifactResolutionException, ArtifactNotFoundException
MavenProject buildWithDependencies(File project, ArtifactRepository localRepository, ProfileManager globalProfileManager) throws ProjectBuildingException, ArtifactResolutionException, ArtifactNotFoundException
MavenProject buildFromRepository(Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository) throws ProjectBuildingException
artifact
- the artifact descriptionlocalRepository
- the local repositoryremoteArtifactRepositories
- the remote repository listProjectBuildingException
MavenProject buildFromRepository(Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubModel) throws ProjectBuildingException
artifact
- the artifact descriptionlocalRepository
- the local repositoryremoteArtifactRepositories
- the remote repository listallowStubModel
- return a stub if the POM is not foundProjectBuildingException
MavenProject buildStandaloneSuperProject(ArtifactRepository localRepository) throws ProjectBuildingException
buildStandaloneSuperProject(ProjectBuilderConfiguration)
instead.ProjectBuildingException
MavenProject buildStandaloneSuperProject(ArtifactRepository localRepository, ProfileManager profileManager) throws ProjectBuildingException
buildStandaloneSuperProject(ProjectBuilderConfiguration)
instead.ProjectBuildingException
MavenProject buildStandaloneSuperProject(ProjectBuilderConfiguration config) throws ProjectBuildingException
ProjectBuildingException
MavenProject build(File pom, ProjectBuilderConfiguration config) throws ProjectBuildingException
ProjectBuildingException
MavenProject build(File pom, ProjectBuilderConfiguration config, boolean checkDistributionManagementStatus) throws ProjectBuildingException
ProjectBuildingException
void calculateConcreteState(MavenProject project, ProjectBuilderConfiguration config) throws ModelInterpolationException
calculateConcreteState(MavenProject, ProjectBuilderConfiguration, boolean)
which assumes that project references should be processed. This is provided for performance reasons, for cases
where you know all projects in the reactor will be processed, making traversal of project references unnecessary.ModelInterpolationException
void calculateConcreteState(MavenProject project, ProjectBuilderConfiguration config, boolean processReferences) throws ModelInterpolationException
MavenProjectBuilder#restoreDynamicState(MavenProject, ProjectBuilderConfiguration, boolean)
method, this method allows expressions in these areas of the POM and project instance to
be reevaluated in the event that a mojo changes one the build-path values, or a project property.
ModelInterpolationException
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.