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

Slawomir Jaranowski commented on ARCHETYPE-688:
-----------------------------------------------

Please provide a stack trace where Velocity is used .... or a simple project to 
reproduce.

 

We have in place an compatibility configuration:
[https://github.com/apache/maven-archetype/blob/master/archetype-common/src/main/java/org/apache/maven/archetype/VelocityConfigurator.java]

> Incompatibities with Velocity in Archetypes
> -------------------------------------------
>
>                 Key: ARCHETYPE-688
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-688
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes, Generator, Plugin
>    Affects Versions: 3.3.0
>            Reporter: Javid
>            Priority: Major
>
> Hello, 
> I am having an issue caused by the new version of the 
> maven-archetype-plugin:3.3.0 related with the recent upgrade of velocity 1.7 
> to velocity 2.3.
> As it is reported in the [Velocity 
> configuration|https://velocity.apache.org/engine/2.3/upgrading.html#vtl-changes_1],
>  from version 1.7 to version 2+, the use of hyphens have changed and now they 
> are not supported in parameters, causing errors.
> To avoid this, there is a property that allow backwards compatibility 
> [detailed 
> here|https://velocity.apache.org/engine/2.3/configuration.html#backward-compatibility],
>  but I believe there is no way to tell maven-archetype-plugin to allow this 
> compatibility in the configuration.
> I have a very complex project that uses hyphens in multiple instances and 
> now, it is impossible to generate a project with the new archetype:3.3.0 
> version.
> My problem is that changing the hyphen will cause a major impact in some 
> other projects that rely on this archetype, so it is not a viable option for 
> me to do.
> Could it be possible for you to include a way to modify Velocity 
> configuration in maven-archetype-plugin:3.3.0? This would be extremely 
> helpful so we can keep up with the future updates
> Thanks in advance!



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

Reply via email to