Make you set <extensions/> to true when including your plugin in the build section of the pom that uses the plugin:
This is an example from a project that uses my nmake plugin. It is mapped to 'exe' and 'dll' <build> <plugins> <plugin> <groupId>com.mycomp.mavenplugin</groupId> <artifactId>maven-nmake-plugin</artifactId> <extensions>true</extensions> <configuration> ..... </configuration> </plugin> </plugins> </build> The mapping itself is done in the components.xml file in the plugin itself (look for <rolehint/> tag) hth, Wim 2006/5/18, Peschier J. (Jeroen) <[EMAIL PROTECTED]>:
I think you need to define the sar package type as an extension in components.xml. Since there's already a sar plugin which also makes available "sar" as a package type you could check the sources of the jboss-sar-maven-plugin at codehaus.org. -----Oorspronkelijk bericht----- Van: Stefan Arentz [mailto:[EMAIL PROTECTED] Verzonden: Sunday, May 14, 2006 7:07 PM Aan: Maven Users List Onderwerp: Cannot find lifecycle mapping for packaging: 'sar' I created a simple plugin to create SAR archives (JBoss Service Archive). It is basically a jar file with a META-INF/jboss-service.xml. The maven-ejb-plugin looked like a good candidate for a template so I used that and modified it. My maven-sar-plugin succesfully builds and installs in the local repository. However, when I try to actually use it to package a SAR, I get the following error: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot find lifecycle mapping for packaging: 'sar'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingsar. Is there anything I need to do before maven will 'see' my new plugin? Also, the last error message is a bit odd or does it simply miss a ": " in between "...LifecycleMapping" and "sar" ? S. --------------------------------------------------------------------- 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]