After adding dependency in Maven EVERY File in Jar is scanned on server startup

已回答

I have added a maven dependency and everything compiles fine, but when starting the server EVERY file in the jar is "scanned" and then ignored.  So basically the server never starts.  See console output below:

 

[ restartedMain] rvletContextInitializer$ClassPathScanner : Scanning URL [jar:file:/Users/paulcalhoun/.m2/repository/com/aspose/aspose-words/21.7/aspose-words-21.7-jdk17.jar!/com/aspose/words/CurrentThreadSettings.class]

 

I have added the following two lines to my application.properties file but it has no effect.

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
server.tomcat.additional-tld-skip-patterns=aspose*.jar

 

So HOW and WHERE in IntelliJ do I tell the server NOT to scan these files?

Thanks

 

 

0

Seems that Tomcat itself is scanning the files, not IntelliJ IDEA. So, it is better to inspect Tomcat documentation rather than IDE's one. 

0

请先登录再写评论。