org.apache.maven.project
Class DefaultMavenProjectBuilder

java.lang.Object
  extended by org.apache.maven.project.DefaultMavenProjectBuilder
All Implemented Interfaces:
MavenProjectBuilder, org.codehaus.plexus.logging.LogEnabled

@Component(role=MavenProjectBuilder.class)
public class DefaultMavenProjectBuilder
extends java.lang.Object
implements MavenProjectBuilder, org.codehaus.plexus.logging.LogEnabled

Version:
$Id: DefaultMavenProjectBuilder.java 738128 2009-01-27 16:18:32Z bentmann $

Field Summary
protected  ArtifactMetadataSource artifactMetadataSource
           
protected  ArtifactResolver artifactResolver
           
protected  MavenProfilesBuilder profilesBuilder
           
 
Fields inherited from interface org.apache.maven.project.MavenProjectBuilder
STRICT_MODEL_PARSING
 
Constructor Summary
DefaultMavenProjectBuilder()
           
 
Method Summary
 MavenProject build(java.io.File project, ArtifactRepository localRepository, ProfileManager profileManager)
           
 MavenProject build(java.io.File projectDescriptor, ProjectBuilderConfiguration config)
           
 MavenProject buildFromRepository(Artifact artifact, java.util.List remoteArtifactRepositories, ArtifactRepository localRepository)
           
 MavenProject buildFromRepository(Artifact artifact, java.util.List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubs)
           
 MavenProjectBuildingResult buildProjectWithDependencies(java.io.File projectDescriptor, ProjectBuilderConfiguration config)
           
 MavenProject buildStandaloneSuperProject(ProjectBuilderConfiguration config)
          This is used for pom-less execution like running archetype:generate.
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

profilesBuilder

@Requirement
protected MavenProfilesBuilder profilesBuilder

artifactResolver

@Requirement
protected ArtifactResolver artifactResolver

artifactMetadataSource

@Requirement
protected ArtifactMetadataSource artifactMetadataSource
Constructor Detail

DefaultMavenProjectBuilder

public DefaultMavenProjectBuilder()
Method Detail

build

public MavenProject build(java.io.File project,
                          ArtifactRepository localRepository,
                          ProfileManager profileManager)
                   throws ProjectBuildingException
Specified by:
build in interface MavenProjectBuilder
Throws:
ProjectBuildingException

build

public MavenProject build(java.io.File projectDescriptor,
                          ProjectBuilderConfiguration config)
                   throws ProjectBuildingException
Specified by:
build in interface MavenProjectBuilder
Throws:
ProjectBuildingException

buildFromRepository

public MavenProject buildFromRepository(Artifact artifact,
                                        java.util.List remoteArtifactRepositories,
                                        ArtifactRepository localRepository,
                                        boolean allowStubs)
                                 throws ProjectBuildingException
Specified by:
buildFromRepository in interface MavenProjectBuilder
Throws:
ProjectBuildingException

buildFromRepository

public MavenProject buildFromRepository(Artifact artifact,
                                        java.util.List remoteArtifactRepositories,
                                        ArtifactRepository localRepository)
                                 throws ProjectBuildingException
Specified by:
buildFromRepository in interface MavenProjectBuilder
Throws:
ProjectBuildingException

buildStandaloneSuperProject

public MavenProject buildStandaloneSuperProject(ProjectBuilderConfiguration config)
                                         throws ProjectBuildingException
This is used for pom-less execution like running archetype:generate. I am taking out the profile handling and the interpolation of the base directory until we spec this out properly.

Specified by:
buildStandaloneSuperProject in interface MavenProjectBuilder
Throws:
ProjectBuildingException

buildProjectWithDependencies

public MavenProjectBuildingResult buildProjectWithDependencies(java.io.File projectDescriptor,
                                                               ProjectBuilderConfiguration config)
                                                        throws ProjectBuildingException
Specified by:
buildProjectWithDependencies in interface MavenProjectBuilder
Throws:
ProjectBuildingException

enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger logger)
Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled


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