The plugin.xml seems fine: <plugin> <description>a plugin that defines all lifecycles for custom AGFA plugins</description> <groupId>com.agfa.maven.plugins</groupId> <artifactId>maven-lifecycle-plugin</artifactId> <version>0.0.14</version> <goalPrefix>lifecycle</goalPrefix> <isolatedRealm>false</isolatedRealm> <inheritedByDefault>true</inheritedByDefault> <mojos/> <dependencies/> </plugin>
The content matches what is used in the POM and the location in the repository. The only content of this plugin is a components.xml file with LifecycleMapping and ArtifactHandler components. It is added in my root POM as a plugin with <extensions>true</extensions>. I just noticed that there is also a build/extensions element containing the maven-help-plugin mentioned in the error message. No idea why it's there, probably just a copy/paste error. If I remove this, everything works fine. So everything's fine for me now, but this is still a small regression from 2.0.x to 2.2.1. thanks, Tom On Tue, Sep 8, 2009 at 12:04 PM, Brett Porter<br...@apache.org> wrote: > Yes, this happens if the plugin gets built as one coordinate, and deployed > to the repository as another. Usually that's just a version out of place but > this seems to be more significant. > > Can you inspect the META-INF/maven/plugin.xml file in the plugin JAR? > > - Brett > > On 08/09/2009, at 7:54 PM, Anders Hammar wrote: > >> I'm just reading the error message. What's in the plugin descriptor of >> your >> plugin "com.agfa.maven.plugins:maven-lifecycle-plugin:0.0.14"? >> I'm not really sure what you mean by 20 lifecycles. Are you talking about >> the phases? I guess you have a normal Maven plugin which is bound by >> default >> to a lifecycle phase? >> >> /Anders >> >> On Tue, Sep 8, 2009 at 11:03, Tom Huybrechts >> <tom.huybrec...@gmail.com>wrote: >> >>> I'm not sure what you mean by 'the groupId...'. There are 20 lifecyles >>> and hundreds of plugins in the components.xml. The maven-help-plugin >>> is not mentioned. >>> >>> >>> >>> On Tue, Sep 8, 2009 at 10:46 AM, Anders Hammar<and...@hammar.net> wrote: >>>> >>>> The error message says that there are errors in the plugin descriptor. >>>> What's the groupId and artifactId in the descriptor? >>>> >>>> /Anders >>>> >>>> On Tue, Sep 8, 2009 at 10:35, Tom Huybrechts <tom.huybrec...@gmail.com >>>> wrote: >>>> >>>>> I have a plugin containing a number of custom lifecycles, which has >>>>> always worked well. >>>>> After upgrade to 2.2.1 (from 2.0.x), I get the following error. What >>>>> does it mean ? >>>>> >>>>> [ERROR] BUILD ERROR >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Internal error in the plugin manager getting plugin >>>>> 'com.agfa.maven.plugins:maven-lifecycle-plugin': Plugin 'com. >>>>> agfa.maven.plugins:maven-lifecycle-plugin:0.0.14' has an invalid >>>>> descriptor: >>>>> 1) Plugin's descriptor contains the wrong group ID: >>>>> org.apache.maven.plugins >>>>> 2) Plugin's descriptor contains the wrong artifact ID: >>>>> maven-help-plugin >>>>> 3) Plugin's descriptor contains the wrong version: 2.0.2 >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Trace >>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error >>>>> in the plugin manager getting plugin 'com.agfa.ma >>>>> ven.plugins:maven-lifecycle-plugin': Plugin >>>>> 'com.agfa.maven.plugins:maven-lifecycle-plugin:0.0.14' has an invalid >>>>> descri >>>>> ptor: >>>>> 1) Plugin's descriptor contains the wrong group ID: >>>>> org.apache.maven.plugins >>>>> 2) Plugin's descriptor contains the wrong artifact ID: >>>>> maven-help-plugin >>>>> 3) Plugin's descriptor contains the wrong version: 2.0.2 >>>>> at >>>>> >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.loadPluginFully(DefaultLifecycleExecutor.java:1586) >>>>> >>>>> at >>>>> >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeHandlersInPlugins(DefaultLifecycleExecuto >>>>> >>>>> r.java:1468) >>>>> at >>>>> >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLifecycleExecutor.java:222) >>>>> >>>>> at >>>>> >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:178) >>>>> >>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) >>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >>>>> at >>>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> at >>>>> >>> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>> >>>>> at >>>>> >>> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>> >>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>> at >>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >>>>> at >>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>>>> Caused by: org.apache.maven.plugin.PluginManagerException: Plugin >>>>> 'com.agfa.maven.plugins:maven-lifecycle-plugin:0.0.14' >>>>> has an invalid descriptor: >>>>> 1) Plugin's descriptor contains the wrong group ID: >>>>> org.apache.maven.plugins >>>>> 2) Plugin's descriptor contains the wrong artifact ID: >>>>> maven-help-plugin >>>>> 3) Plugin's descriptor contains the wrong version: 2.0.2 >>>>> at >>>>> >>> >>> org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:330) >>>>> >>>>> at >>>>> >>> >>> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:224) >>>>> >>>>> at >>>>> >>> >>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184) >>>>> >>>>> at >>>>> >>> >>> org.apache.maven.plugin.DefaultPluginManager.loadPluginFully(DefaultPluginManager.java:1626) >>>>> >>>>> at >>>>> >>> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.loadPluginFully(DefaultLifecycleExecutor.java:1582) >>>>> >>>>> ... 15 more >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>>>> For additional commands, e-mail: users-h...@maven.apache.org >>>>> >>>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org