You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco)" <jp...@cisco.com> on 2007/02/20 18:19:22 UTC

maven-sar-plugin

 
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!!
 
 
 

Re: maven-sar-plugin

Posted by Eric Redmond <er...@gmail.com>.
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) <jp...@cisco.com> 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