If your pom contains <packaging>maven-plugin</packaging>. Just use : mvn install
- Olivier -----Message d'origine----- De : berndq [mailto:[EMAIL PROTECTED] Envoyé : vendredi 9 décembre 2005 13:59 À : [email protected] Objet : [m2] problems with self developed plugin Hi, how do I get a self developed plugin to work? - I followed http://maven.apache.org/guides/plugin/guide-java-plugin-development.html - made a jar - used "mvn install:install-file ..." to add the jar/plugin to the local repository. It says "Installing ...", "BUILD SUCESSFULL" - tried to run the plugin with the fully qualified goal groupID:artifactID:version:goal (of course subtitued with the actual values) but I only get an NPE: --------------------------------------------------------------- D:\tmp>mvn -X -e <groupID>:ClassNamePrinterPlugin:0.8:PrintClassNames + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: 'C:\xxx\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'd:\PROGRA~1\APACHE~1.0\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ ---- [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] null [INFO] ------------------------------------------------------------------------ ---- [DEBUG] Trace java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMana ger.java:292) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau ltPluginManager.j ava:198) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM anager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor .java:1095) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExe cutor.java:1356) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAgg regationNeeds(Def aultLifecycleExecutor.java:376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java :132) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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) [INFO] ------------------------------------------------------------------------ ---- [INFO] Total time: < 1 second [INFO] Finished at: Fri Dec 09 13:47:16 CET 2005 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ ---- D:\tmp> --------------------------------------------------------------- How can I get more debug info? What should I look for? Bernd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ********************************************************************** Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
