java - How to exclude transitive dependency -


i use javamail in same project cxf. cxf brings older version of javamail not suit me. how excluded? did so:

compile (group: 'org.apache.cxf', name: 'cxf-rt-bindings-soap', version: apachecfxversion)  {    exclude module: 'geronimo-javamail_1.4_spec' } 

but did not help. find in war web-inf \ lib \ geronimo-javamail_1.4_spec-1.6.jar

try this:

configurations {     all*.exclude module: 'geronimo-javamail_1.4_spec' } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -