I know it’s possible to create a war file using lein ring war, but it seems to still include jetty dependencies. Is there a way to exclude the jetty dependencies when I’m building the war (and deploying on tomcat)?
If I can’t does this matter at all or is it just extra jars/class files that are packaged up into the war but never actually used?
Leinigen supports :exclusions in a dependency.
See here for details.
Often the problem is working out where the dependencies are coming from. In maven you can do this:
to get a useful ASCII art representation of the dependency tree.
One option would be to generate a pom.xml for your project using
Then runing maven over that.