Zazwyczaj spotykalem sie z podejsciem, ze jdbc connector byl recznie dodawany do folderu tomcat/lib. Teraz architekt chce zeby bylo to dodane jako dependency, wynikowy war powinien zawierac ten connector.

Przy probie wyszukania poprawnego podejscia znalazlem: http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder ktory raczej sklania sie ku temu by dodawac connectory do tomcata bezposrednio.

JDBC drivers register themselves in the JVM-wide singleton DriverManager which is shared by all web apps. If you have the same (as in class name) JDBC driver register twice from two different web apps, this might cause your problem. This is even more problematic if your web apps use different versions of the same JDBC driver.

Wiec jak to powinno byc zrobione poprawnie? Dzieki :)