You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sasi Kumar (Jira)" <ji...@apache.org> on 2024/09/30 11:42:00 UTC
[jira] [Comment Edited] (ARCHETYPE-682) [REGRESSION] With the latest maven-archetype-plugin version 3.3.0, facing the below error, "Error merging velocity templates: Encountered "" at " while creating a new maven project using archetype
[ https://issues.apache.org/jira/browse/ARCHETYPE-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885863#comment-17885863 ]
Sasi Kumar edited comment on ARCHETYPE-682 at 9/30/24 11:41 AM:
----------------------------------------------------------------
In the windows machine, extract the attached zip file contains sample-archetype project and build using *maven 3.6.3*
Build sample-archetype: *mvn clean install*
After build from any new folder, run the following command to create new project using sample-archetype
Create project using sample-archetype: *mvn archetype:generate -DarchetypeGroupId=com.sample -DarchetypeArtifactId=sample-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.sample.project -DartifactId=sample-project -Dversion=1.0-SNAPSHOT -DinteractiveMode=false*
was (Author: JIRAUSER307206):
In the windows machine, extract the attached zip file project contains sample-archetype and build using *maven 3.6.3*
Build sample-archetype: *mvn clean install*
After build from any new folder, run the following command to create new project using sample-archetype
Create project using sample-archetype: *mvn archetype:generate -DarchetypeGroupId=com.sample -DarchetypeArtifactId=sample-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.sample.project -DartifactId=sample-project -Dversion=1.0-SNAPSHOT -DinteractiveMode=false*
> [REGRESSION] With the latest maven-archetype-plugin version 3.3.0, facing the below 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.2.1 released on 26th Sep, 2024. Help us resolve this as soon. Thanks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)