maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edgar Cantu (JIRA)" <>
Subject [jira] [Created] (ARCHETYPE-565) Unable to resolve groovy.json classes when planting
Date Thu, 02 May 2019 14:48:00 GMT
Edgar Cantu created ARCHETYPE-565:

             Summary: Unable to resolve groovy.json classes when planting
                 Key: ARCHETYPE-565
             Project: Maven Archetype
          Issue Type: Bug
          Components: Archetypes
    Affects Versions: 3.1.0
            Reporter: Edgar Cantu

With the latest release of the archetype generator, projects that have a post-generation
script that import from other packages not in groovy core fail to build with an error similar
to the following:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.0:generate
(default-cli) on project standalone-pom: startup failed:
[ERROR] Script1.groovy: 1: unable to resolve class groovy.json.JsonException
[ERROR]  @ line 1, column 1.
[ERROR]    import groovy.json.JsonException
[ERROR]    ^

This used to work in the previous version: 3.0.1 of the archetype-plugin.

Suspected change that introduced this backwards incompatibility:

Essentially, with it looks like the {{groovy}}
dependency went from 1.8.3 to 2.4.16 and groovy split modules from groovy core with the 2.x
release. There is a {{groovy-all}} package that could be used.

This message was sent by Atlassian JIRA

View raw message