You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2015/12/20 02:54:46 UTC

[jira] [Commented] (DOXIASITETOOLS-92) upgrade Velocity from 1.5 to 1.6.4

    [ https://issues.apache.org/jira/browse/DOXIASITETOOLS-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065600#comment-15065600 ] 

Hervé Boutemy commented on DOXIASITETOOLS-92:
---------------------------------------------

tested locally: upgrading to 1.6.4 causes failures in some maven-site-plugin ITs

examples:
{code}  see <<<{{{/plugins/maven-site-plugin/apidocs/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.html#createSiteRenderingContext(java.util.Locale)}AbstractSiteRenderingMojo.createSiteRenderingContext(...)}}>>>{code}
(from {{index.apt.vm}} in full-reporting IT) cause
{noformat}org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 100, column 141.  Encountered: "u" (117), after : "."{noformat}

or from MSITE-609 IT, the failure happens inside the skin template:
{noformat}[INFO] Rendering site with org.apache.maven.skins:maven-stylus-skin:jar:1.2 skin.
[ERROR] Parser Exception: META-INF/maven/site.vm
[ERROR] org.apache.velocity.runtime.parser.ParseException: Encountered "/" at line 39, column 51.
Was expecting one of:
    "," ...
    ")" ...
    <WHITESPACE> ...{noformat}


seems we are stuck with old 1.5 until we have good explanations on upgrading instructions for users...

> upgrade Velocity from 1.5 to 1.6.4
> ----------------------------------
>
>                 Key: DOXIASITETOOLS-92
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-92
>             Project: Maven Doxia Sitetools
>          Issue Type: Wish
>          Components: Site renderer
>    Affects Versions: 1.6
>            Reporter: Hervé Boutemy
>
> Velocity 1.5 was released in 2007: http://velocity.apache.org/engine/devel/changes-report.html#a1.5
> 1.6.4 was done in 2010 http://velocity.apache.org/engine/devel/changes-report.html#a1.6.4
> I don't have precise feature in mind, just Velocity Tools 2.0 annoucement tells Velocity 1.6 is required (seems to work well with 1.5...): http://velocity.apache.org/news.html#tools20
> bq. This should be useable as a drop in replacement for Tools 1.4 or Tools 2.0-beta4, with a few minor exceptions. The 2.x series of VelocityTools requires Velocity 1.6 and JDK 1.5+.
> From a first test, actual Doxia templates work with 1.6 but not with 1.7, so perhaps upgrading to 1.6 is a good step before trying latest 1.7



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)