You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Roland Asmann (JIRA)" <ji...@codehaus.org> on 2012/07/06 13:44:21 UTC

[jira] (MEAR-153) Skinny Modules -- not just WARs

Roland Asmann created MEAR-153:
----------------------------------

             Summary: Skinny Modules -- not just WARs
                 Key: MEAR-153
                 URL: https://jira.codehaus.org/browse/MEAR-153
             Project: Maven 2.x Ear Plugin
          Issue Type: Improvement
    Affects Versions: 2.7
            Reporter: Roland Asmann
         Attachments: SarModule.java.patch

Currently it is only possible to have the plugin filter WARs to get them 'skinny', however this could be very useful for other modules as well!

In my project I have both a WAR and a SAR that should share several libraries. As standalone artifacts, they should both package it themselves, but in the deployed EAR I get classloading-errors when they don't have the libs shared in the EAR.

I traced a solution to the method 'EarModule.getLibDir()', which is only implemented with a value in the 'WebModule'-subclass.
Since I am not familiar with all the module-types, I attached a solution that ONLY handles the SarModule, but this can probably used in all other Modules that contain libs as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MEAR-153) Skinny Modules -- not just WARs

Posted by "Stéphane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MEAR-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302961#comment-302961 ] 

Stéphane Nicoll commented on MEAR-153:
--------------------------------------

probably, yes but I can't really hardcode that "lib" directory in the sar module since anyone can change that directory and it's not part of spec as WEB-INF/lib is for the war.
                
> Skinny Modules -- not just WARs
> -------------------------------
>
>                 Key: MEAR-153
>                 URL: https://jira.codehaus.org/browse/MEAR-153
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.7
>            Reporter: Roland Asmann
>         Attachments: SarModule.java.patch
>
>
> Currently it is only possible to have the plugin filter WARs to get them 'skinny', however this could be very useful for other modules as well!
> In my project I have both a WAR and a SAR that should share several libraries. As standalone artifacts, they should both package it themselves, but in the deployed EAR I get classloading-errors when they don't have the libs shared in the EAR.
> I traced a solution to the method 'EarModule.getLibDir()', which is only implemented with a value in the 'WebModule'-subclass.
> Since I am not familiar with all the module-types, I attached a solution that ONLY handles the SarModule, but this can probably used in all other Modules that contain libs as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MEAR-153) Skinny Modules -- not just WARs

Posted by "Roland Asmann (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MEAR-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302962#comment-302962 ] 

Roland Asmann commented on MEAR-153:
------------------------------------

Could you make it configurable?
                
> Skinny Modules -- not just WARs
> -------------------------------
>
>                 Key: MEAR-153
>                 URL: https://jira.codehaus.org/browse/MEAR-153
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.7
>            Reporter: Roland Asmann
>         Attachments: SarModule.java.patch
>
>
> Currently it is only possible to have the plugin filter WARs to get them 'skinny', however this could be very useful for other modules as well!
> In my project I have both a WAR and a SAR that should share several libraries. As standalone artifacts, they should both package it themselves, but in the deployed EAR I get classloading-errors when they don't have the libs shared in the EAR.
> I traced a solution to the method 'EarModule.getLibDir()', which is only implemented with a value in the 'WebModule'-subclass.
> Since I am not familiar with all the module-types, I attached a solution that ONLY handles the SarModule, but this can probably used in all other Modules that contain libs as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MEAR-153) Skinny Modules -- not just WARs

Posted by "Roland Asmann (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MEAR-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Asmann updated MEAR-153:
-------------------------------

    Attachment: AbstractEarModule.java.patch

Added a new attachment, please disregard the previous attachment!

This change makes the 'libDir' a parameter on the modules, so you can create skinny versions of your modules.
                
> Skinny Modules -- not just WARs
> -------------------------------
>
>                 Key: MEAR-153
>                 URL: https://jira.codehaus.org/browse/MEAR-153
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.7
>            Reporter: Roland Asmann
>         Attachments: AbstractEarModule.java.patch, SarModule.java.patch
>
>
> Currently it is only possible to have the plugin filter WARs to get them 'skinny', however this could be very useful for other modules as well!
> In my project I have both a WAR and a SAR that should share several libraries. As standalone artifacts, they should both package it themselves, but in the deployed EAR I get classloading-errors when they don't have the libs shared in the EAR.
> I traced a solution to the method 'EarModule.getLibDir()', which is only implemented with a value in the 'WebModule'-subclass.
> Since I am not familiar with all the module-types, I attached a solution that ONLY handles the SarModule, but this can probably used in all other Modules that contain libs as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira