You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Michael Osipov (Jira)" <de...@velocity.apache.org> on 2024/02/10 18:54:00 UTC

[jira] [Commented] (VELTOOLS-200) Current Velocity Tools View uses deprecated Velocity properties

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

Michael Osipov commented on VELTOOLS-200:
-----------------------------------------

Found it...

> Current Velocity Tools View uses deprecated Velocity properties 
> ----------------------------------------------------------------
>
>                 Key: VELTOOLS-200
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-200
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: VelocityView
>    Affects Versions: 3.1
>            Reporter: Gernot Hueller
>            Assignee: Michael Osipov
>            Priority: Minor
>             Fix For: 3.2
>
>
> when using current Velocity with current Velocity Tools View , I get the following error messages in the log:
> {{org.apache.velocity.deprecation - configuration key 'resource.loader' has been deprecated in favor of 'resource.loaders'}}
> {{org.apache.velocity.deprecation - configuration key 'webapp.resource.loader.class' has been deprecated in favor of 'resource.loader.webapp.class'}}
> {{org.apache.velocity.deprecation - configuration key 'string.resource.loader.class' has been deprecated in favor of 'resource.loader.string.class'}}
> {{org.apache.velocity.deprecation - configuration key 'runtime.introspector.uberspect' has been deprecated in favor of 'introspector.uberspect.class'}}
>  
> OK so maybe the old property names are used to be compatible to old Velocity Engine versions, but the default is that we use current versions - so a "compatibility mode" should be made smarter than just continuing to use deprecated properties.
> my gradle includes:
> {{earlib group: 'org.apache.velocity', name: 'velocity-engine-core', version: '2.3'}}
> {{earlib group: 'org.apache.velocity.tools', name: 'velocity-tools-view', version: '3.1'}}
>  
> This has also been mentioned in a recent stackoverflow thread
> https://stackoverflow.com/questions/73026164/velocity-warnings-about-deprecated-keys-that-i-dont-even-use



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org