question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Archetype Build Problem - Groovy Dependency

See original GitHub issue

Expected Behaviour

Running the following command should create a new AEM SPA project and successfully execute the build:

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=23 -DaemVersion=6.4.8 -DappTitle="My SPA Site" -DappId="spasite" -DgroupId="com.spasite" -DfrontendModule=angular -DincludeExamples=n

Actual Behaviour

During the build process the step “Executing META-INF/archetype-post-generate.groovy post-generation script” hangs for a bit, then the build fails with the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: startup failed:

[ERROR] General error during conversion: Error grabbing Grapes -- [unresolved dependency: org.codehaus.groovy#groovy-all;2.4.8: not found]

[ERROR] java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: org.codehaus.groovy#groovy-all;2.4.8: not found]

Steps to Reproduce

Run the following command in a command window to create a new project:

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=23 -DaemVersion=6.4.8 -DappTitle="My SPA Site" -DappId="spasite" -DgroupId="com.spasite" -DfrontendModule=angular -DincludeExamples=n

Platform and Version

mvn: 3.6.3 AEM: 6.4.8 Java: 1.8

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fahol-coopcommented, Apr 7, 2021

this should be fixed in archetype. What kind of archetype is this, if it’s not working initially? it’s useless. delete it or fix it!

1reaction
msagoljcommented, Aug 28, 2020

This issues doesn’t seem to be related to the archetype , see: https://stackoverflow.com/questions/16871792/groovy-grab-download-failed

So closing this issue for now. Reopen if you think this issue needs to be solved inside the archetype project itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

archetype 23 build new aem project failing
Basically, groovy has a number of resolvers which will attempt to fetch dependencies in different locations. The location you want it to look...
Read more >
Maven archetype raise error on executing Groovy script
In this groovy script I want to connect to a database and take some actions according to the data. The script is as...
Read more >
Unable to resolve groovy.json classes when planting - Apache
With the latest release of the archetype generator, projects that have a post-generation script that import from other packages not in ...
Read more >
AEM Project Setup Using Maven Archetype 26 | AEM 6.4
7. Build is successful. ... Hi, i am facing one issue when I am creating new archetype with 26 and aem version 6.5.9,...
Read more >
514993 – Maven archetype post generated script is not ... - Bugs
Hi, We can include post generated script in the Maven archetype which will be ... Regarding license issues with groovy (not yet part...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found