You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julien Marti <ka...@gmail.com> on 2008/03/31 17:36:36 UTC
unable to find mojo
Hi,
I'm working on a multiple module project, and I encountered an error when
running mvn install on a child module. The weird thing is that the same
command
worked before and no modifications have been made. The jar
maven-resources-plugin
is in the local repository so I don't get why there is an
ClassNotFoundException, and why
he's unable to find the mojo in the plugin.
Any suggestion on the reasons of this error?
Thanks.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal '
org.apache.maven.plugins:maven-resources-plugin:2.2:resources': Unable to
find the mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources'
in the plugin 'org.apache.maven.plugins:maven-resources-plugin'
org.apache.maven.plugin.resources.ResourcesMojo
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal '
org.apache.maven.plugins:maven-resources-plugin:2.2:resources': Unable to
find the mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources'
in the plugin 'org.apache.maven.plugins:maven-resources-plugin'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:543)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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: Unable to find
the mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' in
the plugin 'org.apache.maven.plugins:maven-resources-plugin'
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:575)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:425)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component '
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-resources-plugin:2.2:resources',
it could not be created
at org.codehaus.plexus.DefaultPlexusContainer.lookup(
DefaultPlexusContainer.java:335)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(
DefaultPlexusContainer.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:566)
... 18 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException: Could
not instanciate component: role: 'null', implementation: '
org.apache.maven.plugin.resources.ResourcesMojo'
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException
(JavaComponentFactory.java:77)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
JavaComponentFactory.java:54)
at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(
DefaultPlexusContainer.java:1464)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance
(AbstractComponentManager.java:93)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent
(PerLookupComponentManager.java:48)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(
DefaultPlexusContainer.java:331)
... 20 more
Caused by: java.lang.ClassNotFoundException:
org.apache.maven.plugin.resources.ResourcesMojo
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(
RealmClassLoader.java:195)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(
DefaultClassRealm.java:255)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(
DefaultClassRealm.java:274)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
JavaComponentFactory.java:30)
... 24 more