org.apache.maven
Class DefaultMaven

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.DefaultMaven
All Implemented Interfaces:
Maven, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class DefaultMaven
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements Maven, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

Version:
$Id: DefaultMaven.java 798706 2009-07-28 20:50:02Z brett $
Author:
Jason van Zyl

Field Summary
protected  org.codehaus.plexus.PlexusContainer container
           
protected  ErrorDiagnostics errorDiagnostics
           
protected  LifecycleExecutor lifecycleExecutor
           
protected  MavenProjectBuilder projectBuilder
           
protected  RuntimeInformation runtimeInformation
           
 
Fields inherited from interface org.apache.maven.Maven
POMv4, RELEASE_POMv4, ROLE
 
Constructor Summary
DefaultMaven()
           
 
Method Summary
 void contextualize(org.codehaus.plexus.context.Context context)
           
protected  MavenSession createSession(MavenExecutionRequest request, ReactorManager rpm)
           
 void execute(MavenExecutionRequest request)
           
protected static String formatTime(long ms)
           
 MavenProject getProject(File pom, ArtifactRepository localRepository, Settings settings, Properties userProperties, ProfileManager globalProfileManager)
          Deprecated. Use getProject(File, MavenExecutionRequest) instead.
 MavenProject getProject(File pom, MavenExecutionRequest request)
           
protected  void line()
           
protected  void logError(Exception e, boolean showErrors)
           
protected  void logFailure(BuildFailureException e, boolean showErrors)
           
protected  void logFatal(Throwable error)
           
protected  void logSuccess(ReactorManager rm)
           
protected  void stats(Date start)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectBuilder

protected MavenProjectBuilder projectBuilder

lifecycleExecutor

protected LifecycleExecutor lifecycleExecutor

container

protected org.codehaus.plexus.PlexusContainer container

errorDiagnostics

protected ErrorDiagnostics errorDiagnostics

runtimeInformation

protected RuntimeInformation runtimeInformation
Constructor Detail

DefaultMaven

public DefaultMaven()
Method Detail

execute

public void execute(MavenExecutionRequest request)
             throws MavenExecutionException
Specified by:
execute in interface Maven
Throws:
MavenExecutionException

getProject

public MavenProject getProject(File pom,
                               ArtifactRepository localRepository,
                               Settings settings,
                               Properties userProperties,
                               ProfileManager globalProfileManager)
                        throws ProjectBuildingException,
                               ArtifactResolutionException,
                               ProfileActivationException
Deprecated. Use getProject(File, MavenExecutionRequest) instead.

Throws:
ProjectBuildingException
ArtifactResolutionException
ProfileActivationException

getProject

public MavenProject getProject(File pom,
                               MavenExecutionRequest request)
                        throws ProjectBuildingException,
                               ArtifactResolutionException,
                               ProfileActivationException
Throws:
ProjectBuildingException
ArtifactResolutionException
ProfileActivationException

createSession

protected MavenSession createSession(MavenExecutionRequest request,
                                     ReactorManager rpm)

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException
Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException

logFatal

protected void logFatal(Throwable error)

logError

protected void logError(Exception e,
                        boolean showErrors)

logFailure

protected void logFailure(BuildFailureException e,
                          boolean showErrors)

logSuccess

protected void logSuccess(ReactorManager rm)

stats

protected void stats(Date start)

line

protected void line()

formatTime

protected static String formatTime(long ms)


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