Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-682

[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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • None
    • Archetypes, Plugin

    Description

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ssasi86 Sasi Kumar

            Dates

              Created:
              Updated:

              Slack

                Issue deployment