[ https://issues.apache.org/jira/browse/ARCHETYPE-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887082#comment-17887082 ]
Slawomir Jaranowski commented on ARCHETYPE-682: ----------------------------------------------- There is a special syntax in velocity, like: {code} #@vmname( $arg1 $arg2 ) here is the body#end {code} so you can not use {code} #@echo off {code} this one will be ok: {code} # @echo off {code} The empty line at the end of file is not matter in such case > [REGRESSION] With the latest maven-archetype-plugin version 3.3.0, facing the > error, "Error merging velocity templates: Encountered "<EOF>" at > <path_to_file.sh>" while creating a new maven project using archetype > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: ARCHETYPE-682 > URL: https://issues.apache.org/jira/browse/ARCHETYPE-682 > Project: Maven Archetype > Issue Type: Bug > Components: Archetypes, Plugin > Affects Versions: 3.3.0 > Reporter: Sasi Kumar > Priority: Major > Labels: EOF, archetype > Attachments: sample-archetype.zip > > > [https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-archetype-plugin/3.3.0] > > Facing the following issue with the latest version of > maven-archetype-plugin/3.3.0 > *Error merging velocity templates: Encountered "<EOF>" at <path_to_file.sh>* > *[exec] [ERROR] Was expecting one of:* > *[exec] [ERROR] "\u001c" ...* > *[exec] [ERROR] "\u001c" ...* > *[exec] [ERROR] "||" ...* > *[exec] [ERROR] "|" ...* > *[exec] [ERROR] "(" ...* > *[exec] [ERROR] ")" ...* > *[exec] [ERROR] <ESCAPE_DIRECTIVE> ...* > *[exec] [ERROR] "]]#" ...* > *[exec] [ERROR] <WHITESPACE> ...* > *[exec] [ERROR] <NEWLINE> ...* > *[exec] [ERROR] <SUFFIX> ...* > *[exec] [ERROR] <STRING_LITERAL> ...* > *[exec] [ERROR] <INTEGER_LITERAL> ...* > *[exec] [ERROR] <FLOATING_POINT_LITERAL> ...* > *[exec] [ERROR] <DOT> ...* > *[exec] [ERROR] " > {" ...* *[exec] [ERROR] "} > " ...* > *[exec] [ERROR] "\\\\" ...* > *[exec] [ERROR] "* > *" ...* > *[exec] [ERROR] <TEXT> ...* > *[exec] [ERROR] <INLINE_TEXT> ...* > *[exec] [ERROR] <EMPTY_INDEX> ...* > *[exec] [ERROR] "{" ...* > *[exec] [ERROR] "\u001c" ...* > *[exec] [ERROR] -> [Help 1]* > > This happens while parsing a shell script file that ends with {*}"cd../.." > without Line Feed{*}. This is working fine till maven-archetype-plugin/3.2.1 > but starts failing from last week after the new version of > maven-archetype-plugin/3.3.0 released on 26th Sep, 2024. Help us resolve this > as soon. Thanks. -- This message was sent by Atlassian Jira (v8.20.10#820010)