Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-175

Velocity Tools 2.0 docs do not list Velocity 1.6.2 as a runtime dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 3.0
    • None
    • None

    Description

      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.

       

      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

       

      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. 

       

      <dependency>
      <groupId>org.apache.velocity</groupId>
      <artifactId>velocity</artifactId>
      <version>1.6.2</version>
      </dependency>

      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 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. 

       

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              nate_chadwick@percussion.com Nate Chadwick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: