Velocity dependencies

Velocity has a number of external jar dependencies. However, not all of these are needed every time.This document should help you do decide which jars must also be present if you want to integrate Velocity into your application.

All of these jars must be present when building Apache Velocity. The build process downloads all of them automatically from the Internet.

jar nameRequiredExplanation
commons-collectionsYes Needed for all parts of Velocity
commons-langYes Needed for all parts of Velocity
oroYes Needed for all parts of Velocity
log4jNo Must be present if log4j Logging has been selected. Not needed if any other logging style has been selected.
logkit (or avalon-logkit)No Must be present if Avalon Logging has been selected. Not needed if any other logging style has been selected.
servletapiNo Only needed when the VelocityServlet is used. Should normally be supplied by the servlet container. VelocityServlet is deprecated and should be replaced with VelocityViewServlet from the velocity-tools distribution.
jdomNo Only required for the Anakia tool / ant task
werken-xpathNo Only required for the Anakia tool / ant task
antlrNo Only required for the Anakia tool / ant task
antNo Only needed for compilation.
junitNo Only needed for running the tests during compilation.
hsqldbNo Only needed for running the tests during compilation.

The most common case is the integration of the Velocity runtime into your application. In this case, you must add commons-collections, commons-lang and oro to your application (and optional logging if required). If you already have one or more of these libraries in your application, you should check if you need to update their versions.

The auto-generated dependency report lists all mandatory dependencies as compile and all optional dependencies as provided.