On 2007-07-03 11:40:06 +0200, "Mark Hobson" <[EMAIL PROTECTED]> said:
On 03/07/07, Jochen Kuhnle <[EMAIL PROTECTED]> wrote:
Hi,
Example for a CompilerMojo
@Goals(
@Goal(goal = "compile", phase = "compile",
requiresDependencyResolution = "compile"),
@Goal(goal = "testCompile", phase = "test-compile",
requiresDependencyResolution = "test"))
public class CompilerMojo extends AbstractMojo {
Why introduce the @Goals annotation when you could just specify
multiple @Goal annotations on the class?
I don't think multiple annotations of the same type are possible, i.e.
@Goal(...)
@Goal(...)
class MyMojo {
}
does not work. At least with Eclipse ;-)
Regards,
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]