You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl-Heinz Marbaise (JIRA)" <ji...@codehaus.org> on 2014/06/15 14:51:10 UTC

[jira] (MEAR-166) 'skinnyWar' doesn't work well with dependencies of type 'ejb'

    [ https://jira.codehaus.org/browse/MEAR-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=348048#comment-348048 ] 

Karl-Heinz Marbaise commented on MEAR-166:
------------------------------------------

Created an [example project|https://github.com/khmarbaise/mear/tree/master/MEAR-166] which shows the wrong behaviour:
{code}
ear-module/target/ear-module-1.0
|-- META-INF
|   `-- application.xml
|-- ejb-module-1.0.jar
|-- lib
|   `-- commons-lang-2.5.jar
`-- war-module-1.0.war
{code}
unfortunately the war file contains the ejb jar file:
{code}
Archive:  ear-module/target/ear-module-1.0/war-module-1.0.war
    testing: META-INF/                OK
    testing: META-INF/maven/          OK
    testing: META-INF/maven/org.apache.maven.its.ear.skinnywars/   OK
    testing: META-INF/maven/org.apache.maven.its.ear.skinnywars/war-module/   OK
    testing: WEB-INF/                 OK
    testing: WEB-INF/classes/         OK
    testing: WEB-INF/lib/             OK
    testing: META-INF/INDEX.LIST      OK
    testing: META-INF/MANIFEST.MF     OK
    testing: META-INF/maven/org.apache.maven.its.ear.skinnywars/war-module/pom.properties   OK
    testing: META-INF/maven/org.apache.maven.its.ear.skinnywars/war-module/pom.xml   OK
    **testing: WEB-INF/lib/ejb-module-1.0.jar   OK**
    testing: WEB-INF/web.xml          OK
{code}

> 'skinnyWar' doesn't work well with dependencies of type 'ejb'
> -------------------------------------------------------------
>
>                 Key: MEAR-166
>                 URL: https://jira.codehaus.org/browse/MEAR-166
>             Project: Maven Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: many different environments I've verified this on
>            Reporter: Michal Michalski
>
> It seems that 'skinnyWar' works OK with dependencies of type 'jar', but it does left 'ejb' dependencies in WEB-INF/lib. Finally, these dependencies exist both in EAR's lib dir and WEB-INF/lib within WAR, when using classic trick with both 'war'-type and 'pom'-type dependency to WAR, so all WAR's dependencies should go to EAR's lib.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)