Assuming you are using the maven-ear-plugin, did you try
*earSourceExcludes*<http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html#earSourceExcludes>

--sony

On Tue, Apr 26, 2011 at 7:18 AM, vaskikamal <[email protected]> wrote:

> Hi Anders,
>  My project is dependent on many thirdparty jars. These jars internally
> maintain thier own pom.xml.
>
>  I applied your suggestion and change the scope to "provided" for below
> mentioned dependency.
>
>  For example, consider the below dependency:
>         <dependency>
>            <groupId>com.fairisaac.fidms.ThirdParty</groupId>
>            <artifactId>dom4j</artifactId>
>            <version>1.6.1</version>
>            <scope>provided</scope>
>        </dependency>
>
> Logically, it should have been excluded from EAR packaging. But, it was
> not.
>
> I am unable to understand why its not working.
>
> Can some one please guide me in resolving the issue.
>
> Regards
> Vaski
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Excluding-Jars-from-EAR-packaging-tp4340264p4340680.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