[
https://issues.apache.org/jira/browse/MEAR-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MEAR-148.
-------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> In an ear which has skinny wars, want to include the same jar in shared lib
> of ear as well as in the war
> --------------------------------------------------------------------------------------------------------
>
> Key: MEAR-148
> URL: https://issues.apache.org/jira/browse/MEAR-148
> Project: Maven Ear Plugin
> Issue Type: New Feature
> Affects Versions: 2.7
> Reporter: Tejas Pajai
> Priority: Major
>
> I have the following artifacts
> MyWar1.war depends on MyJar.jar and SomeThirdParty.jar
> MyWar2.war depends on MyJar.jar
> MyJar.jar also depends on SomeThirdParty.jar
> Now I want to create an ear with MyWar1 and MyWar2, and I want to make them
> skinny wars so that MyJar.jar should not be included in both the wars.
> For some reason, the SomeThirdParty.jar has to be in the WEB-INF/lib
> directory of MyWar1.war
> Here is the structure I want:
> {noformat}
> MyEar.ear
> - lib
> - MyJar.jar
> - SomeThirdParty.jar
> - MyWar1.war
> - WEB-INF/lib/SomeThirdParty.jar
> - MyWar1.war
> {noformat}
> *As you can see, I want the SomeThirdParty.jar in MyWar1 as well as in the
> lib directory.*
> *Is there any way to achieve it if I am using <skinnyWars>true</skinnyWars>?*
> If not, we should have some way of doing this, maybe by supporting nested
> <dependencies> in the <webmodule> tag which would override the skinnyWars
> behavior for the listed dependencies like
> {noformat}
> <webModule>
> <groupId>my.groupId</groupId>
> <artifactId>my.artifactId</artifactId>
> <dependencies>
> <dependency>
> <groupId>SomeThirdParty.jar.groupId</groupId>
> <artifactId>SomeThirdParty.jar</artifactId>
> <version>SomeThirdParty.jar.version</version>
> </dependency>
> </dependencies>
> </webModule>
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)