This works fine:
/** The project. */
@Parameter(required = true, readonly = true, defaultValue =
"${mojoExecution}")
private MojoExecution mojoExecution;
@Override
public String getGoalName() {
return this.mojoExecution.getMojoDescriptor().getGoal();
}
It was a bit of effort to get it to work with AbstractMojoTestCase but
not too bad.
Thanks!
--
View this message in context:
http://maven.40175.n5.nabble.com/Dynamically-determining-the-currently-executing-goal-name-tp5721050p5721312.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]