if you run with -X, you'll find the classpath used for the plugin. Does one of them contain the missing class?
- Brett 2008/8/21 kkmca <[EMAIL PROTECTED]>: > > i am using a plugin that has dependencies that i have installed locally to my > repository - i can browse to the jar file in my repo yet when i run the goal > i am getting a build error > > C:\work\SRC\trunk\mpi-db>mvn jsmooth:jsmoothcompile -e > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'jsmooth'. > WAGON_VERSION: 1.0-beta-2 > [INFO] > ------------------------------------------------------------------------ > [INFO] Building mpi-db > [INFO] task-segment: [jsmooth:jsmoothcompile] > [INFO] > ------------------------------------------------------------------------ > ----------------------------------------------------- > this realm = > app0.child-container[com.mindtree.techworks.insight.releng:maven-js > mooth-plugin] > urls[0] = file:/C:/Documents and Settings/kmcadams.M++++++++/.m2/repository > /com/mindtree/techworks/insight/releng/maven-jsmooth-plugin/0.2.0/maven-jsmooth- > plugin-0.2.0.jar > urls[1] = file:/C:/Documents and Settings/kmcadams.M++++++++/.m2/repository > /org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar > Number of imports: 6 > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > > > this realm = plexus.core > urls[0] = file:/C:/tools/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar > Number of imports: 6 > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > import: [EMAIL PROTECTED] > ----------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Internal error in the plugin manager executing goal > 'com.mindtree.techwor > ks.insight.releng:maven-jsmooth-plugin:0.2.0:jsmoothcompile': Unable to find > the > mojo > 'com.mindtree.techworks.insight.releng:maven-jsmooth-plugin:0.2.0:jsmoothc > ompile' in the plugin > 'com.mindtree.techworks.insight.releng:maven-jsmooth-plugi > n' > net/charabia/jsmoothgen/application/ExeCompiler$StepListener > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in > the pl > ugin manager executing goal > 'com.mindtree.techworks.insight.releng:maven-jsmooth > -plugin:0.2.0:jsmoothcompile': Unable to find the mojo > 'com.mindtree.techworks.i > nsight.releng:maven-jsmooth-plugin:0.2.0:jsmoothcompile' in the plugin > 'com.mind > tree.techworks.insight.releng:maven-jsmooth-plugin' > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:562) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:512) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:482) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > 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 mo > jo > 'com.mindtree.techworks.insight.releng:maven-jsmooth-plugin:0.2.0:jsmoothcomp > ile' in the plugin > 'com.mindtree.techworks.insight.releng:maven-jsmooth-plugin' > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul > tPluginManager.java:618) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:429) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:558) > ... 16 more > Caused by: > org.codehaus.plexus.component.repository.exception.ComponentLookupExc > eption: Unable to lookup component > 'org.apache.maven.plugin.Mojocom.mindtree.tec > hworks.insight.releng:maven-jsmooth-plugin:0.2.0:jsmoothcompile', it could > not b > e created > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai > ner.java:335) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai > ner.java:440) > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul > tPluginManager.java:609) > ... 18 more > Caused by: > org.codehaus.plexus.component.factory.ComponentInstantiationException > : Could not instanciate component: role: 'null', implementation: > 'com.mindtree.t > echworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo' > at > org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE > xception(JavaComponentFactory.java:77) > at > org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn > stance(JavaComponentFactory.java:62) > at > org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De > faultPlexusContainer.java:1464) > at > org.codehaus.plexus.component.manager.AbstractComponentManager.create > ComponentInstance(AbstractComponentManager.java:93) > at > org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo > mponent(PerLookupComponentManager.java:48) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai > ner.java:331) > ... 20 more > Caused by: java.lang.NoClassDefFoundError: > net/charabia/jsmoothgen/application/E > xeCompiler$StepListener > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) > at java.lang.Class.getConstructor0(Class.java:2671) > at java.lang.Class.newInstance0(Class.java:321) > at java.lang.Class.newInstance(Class.java:303) > at > org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn > stance(JavaComponentFactory.java:44) > ... 24 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3 seconds > [INFO] Finished at: Wed Aug 20 12:16:48 PDT 2008 > [INFO] Final Memory: 9M/17M > [INFO] > ------------------------------------------------------------------------ > > C:\work\SRC\trunk\mpi-db> > -- > View this message in context: > http://www.nabble.com/newby-%3A-unaable-to-find-mojo-error-tp19076655p19076655.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Brett Porter Blog: http://blogs.exist.com/bporter/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
