How to exclude jar from 'APP-INF/lib' directory?

Hi, How to configure ‘ear’ plugin to exclude a library from ‘APP-INF/lib’ directory? I’ve been looking for two hours but without success.

Really no ideas? Or maybe it’s to trivial to give any response…

Simply excluding it from the ‘earlib’ configuration doesn’t work?

configurations.earlib.exclude module: "log4j"