[ https://issues.apache.org/jira/browse/VELTOOLS-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed VELTOOLS-175. ----------------------------------- Resolution: Fixed Assignee: Michael Osipov Fix Version/s: 3.0 Tools 3.0 now properly dependend on Velocity Engine 2.0 and uses SLF4J for logging. > 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 > Assignee: Michael Osipov > Priority: Major > Fix For: 3.0 > > > 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: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org