Balázs Németh
Balázs Németh

Reputation: 6637

Maven tomcat plugin - adding extra classpath

I'm wondering if it's possible to add an extra directory to the classpath of tomcat run by the maven tomcat plugin?

When I use "normal" tomcat 6, I set this via the bin/setClasspath.sh file, and it's pretty straightforward that way, but so far I haven't been able to figure it out how to do this when using maven.

So any help is appreciated!

cheers,

balázs

Upvotes: 1

Views: 6202

Answers (2)

Philipp Jardas
Philipp Jardas

Reputation: 3302

Have a look at this question and the first (not accepted) answer. Maven profiles FTW!

Using Maven to run a WAR dynamically in Tomcat, how does one add classpath entries so only Tomcat sees them?

Upvotes: 0

khmarbaise
khmarbaise

Reputation: 97348

You can use the classesDir parameter for the plugin configuration (tomcat-maven-plugin).

Upvotes: 2

Related Questions