|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.lifecycle.binding.DefaultLifecycleBindingManager
public class DefaultLifecycleBindingManager
Responsible for the gross construction of LifecycleBindings, or mappings of MojoBinding instances to different parts of the three lifecycles: clean, build, and site. Also, handles transcribing these LifecycleBindings instances into lists of MojoBinding's, which can be consumed by the LifecycleExecutor.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.lifecycle.binding.LifecycleBindingManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultLifecycleBindingManager()
|
|
| Method Summary | |
|---|---|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger)
|
LifecycleBindings |
getBindingsForPackaging(MavenProject project,
MavenSession session)
Retrieve the LifecycleBindings given by the lifecycle mapping component/file for the project's packaging. |
LifecycleBindings |
getDefaultBindings(MavenProject project)
Construct the LifecycleBindings for the default lifecycle mappings, including injection of configuration from the project into each MojoBinding, where appropriate. |
java.util.List |
getLifecycles()
|
LifecycleBindings |
getPluginLifecycleOverlay(PluginDescriptor pluginDescriptor,
java.lang.String lifecycleId,
MavenProject project)
Construct the LifecycleBindings that constitute the mojos mapped to the lifecycles by an overlay specified in a plugin. |
LifecycleBindings |
getProjectCustomBindings(MavenProject project,
MavenSession session,
java.util.Set unbindableMojos)
Construct the LifecycleBindings that constitute the extra mojos bound to the lifecycle within the POM itself. |
java.util.List |
getReportBindings(MavenProject project,
MavenSession session)
Retrieve the list of MojoBinding instances that correspond to the reports configured for the specified project. |
void |
resolveUnbindableMojos(java.util.Set unbindableMojos,
MavenProject project,
MavenSession session,
LifecycleBindings lifecycleBindings)
Go through the set of unbindable mojos provided (these are MojoBinding instancess coming
from the project as custom bindings for which we failed to determine a phase
to bind them during LifecycleBindingManager.getProjectCustomBindings(MavenProject, MavenSession, Set)). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLifecycleBindingManager()
| Method Detail |
|---|
public java.util.List getLifecycles()
getLifecycles in interface LifecycleBindingManager
public LifecycleBindings getBindingsForPackaging(MavenProject project,
MavenSession session)
throws LifecycleLoaderException,
LifecycleSpecificationException
getBindingsForPackaging in interface LifecycleBindingManagerLifecycleLoaderException
LifecycleSpecificationException
public LifecycleBindings getDefaultBindings(MavenProject project)
throws LifecycleSpecificationException
getDefaultBindings in interface LifecycleBindingManagerLifecycleSpecificationExceptionpublic void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging in interface org.codehaus.plexus.logging.LogEnabled
public LifecycleBindings getProjectCustomBindings(MavenProject project,
MavenSession session,
java.util.Set unbindableMojos)
throws LifecycleLoaderException,
LifecycleSpecificationException
getProjectCustomBindings in interface LifecycleBindingManagerLifecycleLoaderException
LifecycleSpecificationException
public LifecycleBindings getPluginLifecycleOverlay(PluginDescriptor pluginDescriptor,
java.lang.String lifecycleId,
MavenProject project)
throws LifecycleLoaderException,
LifecycleSpecificationException
getPluginLifecycleOverlay in interface LifecycleBindingManagerLifecycleLoaderException
LifecycleSpecificationException
public java.util.List getReportBindings(MavenProject project,
MavenSession session)
throws LifecycleLoaderException,
LifecycleSpecificationException
getReportBindings in interface LifecycleBindingManagerLifecycleLoaderException
LifecycleSpecificationException
public void resolveUnbindableMojos(java.util.Set unbindableMojos,
MavenProject project,
MavenSession session,
LifecycleBindings lifecycleBindings)
throws LifecycleSpecificationException
MojoBinding instancess coming
from the project as custom bindings for which we failed to determine a phase
to bind them during LifecycleBindingManager.getProjectCustomBindings(MavenProject, MavenSession, Set)).
For each MojoBinding, attempt to resolve it again, and if successful,
extract the default phase name from the MojoDescriptor.
resolveUnbindableMojos in interface LifecycleBindingManagerLifecycleSpecificationException - In case the plugin cannot be resolved, the plugin doesn't contain the specified mojo,
or the mojo doesn't have a default phase.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||