回到顶部
您的当前位置: 专题> Apache Velocity系列教程
Apache Velocity(二)获取JAR包
2014-06-01 21:13:23
标签: 网络整理 Velocity Jar Maven
MAVEN用户

在你的pom.xml中添加如下依赖:

<dependency>
  <groupId>org.apache.velocity</groupId>
  <artifactId>velocity-engine-core</artifactId>
  <version>x.x.x</version>
</dependency>

如果你想使用Commons Logging、SLF4J、Log4j或者servlet logger显示velocity的日志,选择与之相对应的依赖:

<dependency>
  <groupId>org.apache.velocity</groupId>
  <artifactId>velocity-engine-commons-logging</artifactId>
  <version>x.x.x</version>
</dependency>
<dependency>
  <groupId>org.apache.velocity</groupId>
  <artifactId>velocity-engine-slf4j</artifactId>
  <version>x.x.x</version>
</dependency>
<dependency>
  <groupId>org.apache.velocity</groupId>
  <artifactId>velocity-engine-log4j</artifactId>
  <version>x.x.x</version>
</dependency>
<dependency>
  <groupId>org.apache.velocity</groupId>
  <artifactId>velocity-engine-servlet</artifactId>
  <version>x.x.x</version>
</dependency>
其他用户

下载地址:http://velocity.apache.org/download.cgi#Engine

如果你想要启动您的应用程序,仅包含velocity-x.x.x.jar在你的类路径中即可,已经包含所有的Velocity Engine类,也包含在“lib”目录中的所有的jars。