In my current project, they use ant and pack all the jars inside the
ejb-jar.jar.
Now, they are thinking of migrating to maven from ant, but still want to
pack the jars inside ejb-jar.jar.

Is there anyway to do this without exploding the dependencies into my jar.

Other way is to keep the jars in ear lib directory. But I don't want to do
this because these jars are being used only by one ejb project and other ejb
and web modules doesn't need these jars.



Stephen Connolly-2 wrote:
> 
> the jar spec does not support jar files within jar files (technically  
> Java's URL support only goes one level deep: eg jar:url/to/file!path/ 
> in/jar is allowed, but jar:jar:url/to/file!path/in/jar!path/in/jar is  
> not) so while you could copy the jar files inside your ejb jar,  
> nothing will be loaded from it
> 
> what you can do is explode your dependencies into your jar. there are  
> two tools you can use for this: dependency:unpack-dependencies or the  
> maven-shade-plugin
> 
> Sent from my [rhymes with tryPod] ;-)
> 
> On 19 Nov 2009, at 19:00, "Medishetty, Rajendar"
> <rajendar.medishe...@gs.com 
>  > wrote:
> 
>> Hi,
>>
>> I'm using ejb-jar plugin to generate the ejb-jar.jar.
>>
>> I have some library jars, which are only used by this ejbModule. So  
>> I want them to be packaged inside ejb-jar.jar file only and I don't  
>> want them to place them in ear lib directory.
>> I couldn't find anything with ejb-jar plug-in to package these jars  
>> into ejb-jar.jar file.
>>
>> Is there any way to do that.
>>
>> Thanks,
>> Rajendar
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ejb-jar-plug-in---Can-we-add-dependency-jars-to-ejb-jar.jar-tp26433953p26449223.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to