mirror of https://github.com/apache/maven.git
Re-adding the lifecyclePhase/phase tag for mojo metadata.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@227296 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4dfd0934b
commit
c6dad78398
|
@ -61,6 +61,8 @@ public class MetadataTag
|
|||
|
||||
private String executeLifecycle;
|
||||
|
||||
private String lifecyclePhase;
|
||||
|
||||
protected boolean alwaysProcessChildren()
|
||||
{
|
||||
return false;
|
||||
|
@ -117,6 +119,11 @@ public class MetadataTag
|
|||
descriptor.setExecutePhase( executePhase );
|
||||
}
|
||||
|
||||
if ( notEmpty( lifecyclePhase ) )
|
||||
{
|
||||
descriptor.setPhase( lifecyclePhase );
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
descriptor.setParameters( parameters );
|
||||
|
@ -217,4 +224,9 @@ public class MetadataTag
|
|||
this.executeLifecycle = executeLifecycle;
|
||||
}
|
||||
|
||||
public void setLifecyclePhase( String lifecyclePhase )
|
||||
{
|
||||
this.lifecyclePhase = lifecyclePhase;
|
||||
}
|
||||
|
||||
}
|
|
@ -27,25 +27,27 @@ public class MojoDefinitionTagLibrary
|
|||
|
||||
public MojoDefinitionTagLibrary()
|
||||
{
|
||||
registerTag( "aggregator", AggregatorTag.class );
|
||||
registerTag( "default", ParamDefaultTag.class );
|
||||
registerTag( "description", DescriptionTag.class );
|
||||
registerTag( "execute", ExecuteTag.class );
|
||||
registerTag( "executionStrategy", ExecutionStrategyTag.class );
|
||||
registerTag( "expression", ParamExpressionTag.class );
|
||||
registerTag( "goal", GoalTag.class );
|
||||
registerTag( "inheritByDefault", InheritByDefaultTag.class );
|
||||
registerTag( "instantiationStrategy", InstantiationStrategyTag.class );
|
||||
registerTag( "lifecyclePhase", LifecyclePhaseTag.class );
|
||||
registerTag( "metadata", MetadataTag.class );
|
||||
registerTag( "mojo", MojoTag.class );
|
||||
registerTag( "name", ParamNameTag.class );
|
||||
registerTag( "parameters", ParametersTag.class );
|
||||
registerTag( "parameter", ParameterTag.class );
|
||||
registerTag( "phase", LifecyclePhaseTag.class );
|
||||
registerTag( "required", ParamRequiredTag.class );
|
||||
registerTag( "requiresDependencyResolution", RequiresDependencyResolutionTag.class );
|
||||
registerTag( "requiresProject", RequiresProjectTag.class );
|
||||
registerTag( "requiresOnline", RequiresOnlineTag.class );
|
||||
registerTag( "inheritByDefault", InheritByDefaultTag.class );
|
||||
registerTag( "aggregator", AggregatorTag.class );
|
||||
registerTag( "name", ParamNameTag.class );
|
||||
registerTag( "expression", ParamExpressionTag.class );
|
||||
registerTag( "type", ParamTypeTag.class );
|
||||
registerTag( "default", ParamDefaultTag.class );
|
||||
registerTag( "required", ParamRequiredTag.class );
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue