5/20/2015

How to prevent logging JARs from being copied to your portlet´s WEB-INF/lib folder

Quick Tipp for all of you who have their logging implementation in their LIB/EXT directory. This is how you prevent liferay from auto-deploying log4j and apache commons logging each time you deploy a portlet:

Add this to your portal-ext.properties file:


auto.deploy.copy.log4j=false
auto.deploy.copy.commons.logging=false