Uploaded image for project: 'Maven JXR'
  1. Maven JXR
  2. JXR-84

Spurious error message fixed in Velocity 1.5 still exists in JXR

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: jxr
    • Labels:
      None
    • Environment:
      Mac OS X 10.6.4, Java 1.6.0_20, Maven 2.2.1

      Description

      There was a bug in Velocity 1.4 that was causing a spurious error message to be printed:

      [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
      [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'

      This affects many Maven users who include JXR reports with their site generation. That is because JXR uses Velocity, and thus the innocuous error would be displayed on every "mvn site".

      With the release of Velocity 1.5 in 2007, the bug was fixed:

      https://issues.apache.org/jira/browse/VELOCITY-86

      But even when using the latest versions of JXR (2.2) and the Site plugin (2.1.1), the error message still appears. This is because in the dependency tree, the old Velocity 1.4 release is being pulled in (see attached build log).

      The component with a direct dependency on Velocity 1.4 is maven-jxr (not the plugin but the library). Updating it to use Velocity 1.5 would presumably cause the error message to go away.

        Attachments

        1. log.txt
          128 kB
          Trevor Harmon
        2. example.zip
          4 kB
          Trevor Harmon
        3. JXR-84.patch
          9 kB
          Benson Margulies

          Activity

            People

            • Assignee:
              bmargulies Benson Margulies
              Reporter:
              vocaro Trevor Harmon
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: