Use the jboss-packaging-maven-plugin plugin.

You can add an extesion in the build element, as per the POM documentation:

http://maven.apache.org/pom.html#Extensions

You would be something like:

<project>
 <build>
   ...
   <extensions>
     <extension>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>jboss-packaging-maven-plugin</artifactId>
       <version>2.0-SNAPSHOT</version>
     </extension>
   </extensions>
   ...
 </build>
</project>

Eric

On 2/20/07, Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc.
at Cisco) <[EMAIL PROTECTED]> wrote:


Can anyone share an example of maven-sar-plugin.

I am getting this error,

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot find lifecycle mapping for packaging: 'jboss-sar'.
Component descriptor cannot be found in the component repository:
org.apache.mav
en.lifecycle.mapping.LifecycleMappingjboss-sar.
[INFO]
------------------------------------------------------------------------


Read some posting that this plugin needs to be added to the <extension>.
Not sure how to add it. Is there anything else that needs to be added to
make it work.

Thanks!!






--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to