Nate Chadwick created VELTOOLS-175:
--------------------------------------
Summary: Velocity Tools 2.0 docs do not list Velocity 1.6.2 as a
runtime dependency
Key: VELTOOLS-175
URL: https://issues.apache.org/jira/browse/VELTOOLS-175
Project: Velocity Tools
Issue Type: Bug
Affects Versions: 2.0
Reporter: Nate Chadwick
When testing Velocity 2.0 tools with Velocity 2.0. A couple of the generic 2.0
tools error out with a missing dependency on the runtime Log class. This came
up in testing the xml tool and the field tool. Looking at the 2.0 stable tool
sources they do import this class.
{code:java}
org.apache.velocity.runtime.log.Log
java.lang.NoClassDefFoundError: org/apache/velocity/runtime/log/Log
Caused by: java.lang.ClassNotFoundException:
org.apache.velocity.runtime.log.Log{code}
After downloading the source tarball for Velocity Tools 2.0 is looks like the
POM is referencing 1.6.2 of the Velocity Engine, and as Velocity 2.0 no longer
includes the org.apache.velocity.runtime.log.Log package, that explains the
runtime error.
{code:java}
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.6.2</version>
</dependency>{code}
The fact that the tools jar is version 2.0 is misleading as it is actually
compiling with velocity 1.6 not Velocity 2.0.
I think in the least the [dependency documentation
page|http://velocity.apache.org/tools/2.0/dependencies.html] needs updated to
indicate that Velocity Tools 2.0 required Velocity 1.6.2 instead of 1.5+.
In the best the 2.0 tools should be compiling against the 2.0 engine.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]