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
<[email protected]>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<[email protected]>
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 <[email protected]
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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]