You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2012/06/30 01:58:53 UTC
maven-plugin-plugin thinks there's no mojos when I use annotations
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-plugin-plugin:3.0:helpmojo
(generated-helpmojo) on project maven-shade-plugin: Error extracting
plugin descriptor: 'No mojo definitions were found for plugin:
org.apache.maven.plugins:maven-shade-plugin.' -> [Help 1]
even though I've got:
@Mojo(name = "shade", defaultPhase = LifecyclePhase.PACKAGE,
threadSafe = false, requiresDependencyResolution =
ResolutionScope.RUNTIME)
on the class.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven-plugin-plugin thinks there's no mojos when I use annotations
Posted by Benson Margulies <bi...@gmail.com>.
THanks.
On Fri, Jun 29, 2012 at 8:04 PM, Tony Chemit <ch...@codelutin.com> wrote:
> On Fri, 29 Jun 2012 19:58:53 -0400
> Benson Margulies <bi...@gmail.com> wrote:
>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-plugin-plugin:3.0:helpmojo
>> (generated-helpmojo) on project maven-shade-plugin: Error extracting
>> plugin descriptor: 'No mojo definitions were found for plugin:
>> org.apache.maven.plugins:maven-shade-plugin.' -> [Help 1]
>>
>> even though I've got:
>>
>> @Mojo(name = "shade", defaultPhase = LifecyclePhase.PACKAGE,
>> threadSafe = false, requiresDependencyResolution =
>> ResolutionScope.RUNTIME)
>>
>>
>> on the class.
> Yes that's because the helpmojo is inovked at generate-sources phase, but descriptor is now invoked at process-classes (to process annotations).
>
> to avoid your problem just add in the maven-plugin-plugin this configuration :
>
> <configuration>
> <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
> </configuration>
>
> see http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html
>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
>
>
> --
> Tony Chemit
> --------------------
> tél: +33 (0) 2 40 50 29 28
> email: chemit@codelutin.com
> http://www.codelutin.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven-plugin-plugin thinks there's no mojos when I use
annotations
Posted by Tony Chemit <ch...@codelutin.com>.
On Fri, 29 Jun 2012 19:58:53 -0400
Benson Margulies <bi...@gmail.com> wrote:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-plugin-plugin:3.0:helpmojo
> (generated-helpmojo) on project maven-shade-plugin: Error extracting
> plugin descriptor: 'No mojo definitions were found for plugin:
> org.apache.maven.plugins:maven-shade-plugin.' -> [Help 1]
>
> even though I've got:
>
> @Mojo(name = "shade", defaultPhase = LifecyclePhase.PACKAGE,
> threadSafe = false, requiresDependencyResolution =
> ResolutionScope.RUNTIME)
>
>
> on the class.
Yes that's because the helpmojo is inovked at generate-sources phase, but descriptor is now invoked at process-classes (to process annotations).
to avoid your problem just add in the maven-plugin-plugin this configuration :
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
see http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
email: chemit@codelutin.com
http://www.codelutin.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org