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

groovy.text.SimpleTemplateEngine Not Found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1
    • Archetypes
    • None
    • Important

    Description

      I am posting this issue on behalf of the official Jakarta EE Starter project at the Eclipse Foundation: https://start.jakarta.ee. We make use of Maven Archetypes in the Starter under the hood and also as an API: https://github.com/eclipse-ee4j/starter/tree/master/archetype.

      We are pretty dependent on Groovy and use groovy.text.SimpleTemplateEngine for some critical functionality: https://github.com/eclipse-ee4j/starter/blob/ca9b5028b7fe3b47ecf4b5e5c22e89bc941e99a0/archetype/src/main/resources/META-INF/archetype-post-generate.groovy#L144.

      A few days ago we noticed that the Archetype is suddenly broken with the following error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.3.0:generate (default-cli) on project standalone-pom: startup failed:
      [ERROR] Script1.groovy: 144: unable to resolve class groovy.text.SimpleTemplateEngine
      [ERROR]  @ line 144, column 18.
      [ERROR]        def engine = new groovy.text.SimpleTemplateEngine()
      [ERROR]                     ^
      [ERROR]
      [ERROR] 1 error

      This seems to coincide with the 3.3.0 release of maven-archetype-plugin. Any idea what is going on and how to fix this?

      Please LMK if you need anything from us?

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              reza_rahman Reza Rahman
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: