Load external jars

Hello, i hope can you help me

I have a project with the spring boot and I have an own jar, I want to add this jar as dependencies but not add in the web-inf / libs, I added the dependency as providedCompile, this way the jar is not in the Web-inf But when started jboss throws a classNotFound exception and this class is in the jar