Specify scope as "provided" for those dependencies that you expect to be
made available by the container.

/Anders

On Tue, Apr 26, 2011 at 09:05, vaskikamal <[email protected]> wrote:

> Hi, I have a requirement where i want to exclude dependent jars from EAR
> packaging and instead use Share Library for the same. For example, please
> consider the below dependecy: com.ThirdParty hibernate-core 3.3.1 compile
> As
> you can see, i have mentioned jars having compile scope. I need to make
> sure
> that my project is build successfully without any compilation errors. Also,
> once my project is built i need these jars tobe excluded from EAR
> packaging.
> I have tried using *.jar, META-INF/**. But, it packages all the jars in
> EAR.
> Kindly let me know how can i achieve the desired result. Regards Vaski
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Excluding-Jars-from-EAR-packaging-tp4340264p4340264.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to