Mark Hobson wrote:

http://maven.apache.org/developers/mojo-api-specification.html

Under requiresDependencyResolution, "If this annotation is present but
no scope is specified, the scope defaults to runtime."

What the Mojo API specification is meant to say is that the mere notation of

  @requiresDependencyResolution

is equivalent to the complete form

  @requiresDependencyResolution runtime

This is realized by the maven-plugin-tools-java [0] and can be verified by a simple test mojo whose plugin descriptor will contain

  <requiresDependencyResolution>runtime</requiresDependencyResolution>

after running the "generate-resources" phase.

To summarize: There is a difference in omitting just the phase argument of the annotation and omitting the annotation completely.

Hope that clarifies things a little.


Benjamin


[0] http://maven.apache.org/plugin-tools/maven-plugin-tools-java/xref/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.html#319

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to