maven tomcat plugin with mysql driver in $catalina_home/lib

Posted by gerolf on Stack Overflow See other posts from Stack Overflow or by gerolf
Published on 2010-02-16T13:19:03Z Indexed on 2010/06/08 4:12 UTC
Read the original article Hit count: 236

Filed under:
|
|
|
|

Hi everybody,

i am trying to use a container managed datasource (via context.xml) in tomcat. The corresponding jar file needs to go in $catalina_home/lib, otherwise tomcat can't find it. (not in webapp/WEB-INF/lib, because it is managed by the webserver, not by the application itself)

the problem is: I am using maven with the maven-tomcat-plugin, so I don't have a $catalina_home (everything is distributed in my .m2 -repository).

So the question is: how can I add the mysql driver jar to the classpath of the tomcat server (mvn tomcat:run)?

thanks a lot,

gerolf.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about tomcat