[ 
http://jira.codehaus.org/browse/MJBOSSPACK-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180182#action_180182
 ] 

Paul Gier commented on MJBOSSPACK-20:
-------------------------------------

I think this issue needs to be fixed in the cargo plugin.  Changing the 
packaging type from "jboss-sar" to "sar" would break backwards compatibility 
with the plugin.

As a workaround, sars can be deployed from a separate project.  So if you haven 
project A which is a "jboss-sar" project, you can create a project B which 
depends on project A.  In the project B POM, just define a dependency on 
project A with the "sar" type like this:
{code:xml}
<dependency>
  <groupId>com.mycompany</groupId>
  <artifactId>projectA</artifactId>
  <version>1.0</version>
  <type>sar</type>
</dependency>
{code}

Then project A can be deployed using cargo.

> Improve interop with the cargo plugin
> -------------------------------------
>
>                 Key: MJBOSSPACK-20
>                 URL: http://jira.codehaus.org/browse/MJBOSSPACK-20
>             Project: Maven 2.x JBoss Packaging Plugin
>          Issue Type: Improvement
>          Components: sar
>    Affects Versions: 2.0-beta-1
>         Environment: linux
>            Reporter: Nuno Marques
>            Assignee: Paul Gier
>         Attachments: patch-sar.txt
>
>
> In order for the cargo plugin to deploy sar files, they have to be package as 
> sar instead of jboss-sar, even though in the end they result in foo.sar files.
> I renamed the jboss-sar packaging type to sar, and it works!
> I don't know any other way around this. As far as I've searched the web, 
> other people have the same issue and no answers were provided.
> I know that for consistency reasons and possibly to avoid confusion, the 
> types of packages are all pre appended with jboss.
> Maybe it's worth revisiting the pros and cons for this naming strategy.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to