Pablo Karlsson Pablo Karlsson - 7 months ago 10
Java Question

Where do I configure jarsToSkip option when using tomcat7-maven-plugin

Im using maven with tomcat7-maven plugin and its working quite well. Recently I noticed a message saying

At least one JAR was scanned for TLDs yet contained no TLDs.
Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them.


So I did some reasearch and realised I need to set the jarsToSkip property for the jars that dont contain TLDs. I have been looking into how to find which jars it is that is causing the problem but with little luck it seams tomcat7-maven-plugin is nott passing my loggersettings that are required for output of names of the jars.

Also I do not know where I set the jarsToSkip property when I have found the jars.

Any help would be appreciated.

Answer

Believe the property jarsToSkip is a "catalina.properties" entry. Where ever your Tomcat conf folder is look at file "catalina.properties" and you should see a property like this around line 90 or so:

tomcat.util.scan.DefaultJarScanner.jarsToSkip=\

You should be able to add jars to that list to prevent them from being scanned.

As far as finding which jars are causing the issues, that would be a little more difficult to determine. Probably some trial and error work to be done there.