Excluding jars from ear/lib dir and packaging them into a separate zip file

Hi, I’m trying to build a J2ee application for jboss and I need to build an ear and a separate zip with external libs. Reason is that the ear will be redeployed often, and it must include only the internal developed jars, that are changed often; I need also to produce an “external libs” zip file. This file will contain third-party dependencies that will be put at install time in the app server common lib.

I packaged my ear with the ear plugin and it works, but I need to exclude some libs from the ear/lib dirs and place them in a separate zip. I found a similar issue in the war plugin, and I could solve it with the classpath filter. Is there any way that this can be done with ear plugins?

Thanks, Luca