Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archetype generation fails with maven-archetype-plugin 3.2.1 #857

Closed
stefanseifert opened this issue Jan 3, 2022 · 4 comments · Fixed by #858
Closed

Archetype generation fails with maven-archetype-plugin 3.2.1 #857

stefanseifert opened this issue Jan 3, 2022 · 4 comments · Fixed by #858

Comments

@stefanseifert
Copy link
Contributor

When creating a new AEM project without actually specifying an archetype plugin version on the command line, Maven uses the latest by default. And this is currently failing with the latest version 3.2.1 released a few days ago.

Exception:

[ERROR] groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-all is loaded in version 2.4.16 and you are trying to load version 2.4.8
[ERROR]         at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$DefaultModuleListener.onModule(MetaClassRegistryImpl.java:529)
[ERROR]         at org.codehaus.groovy.runtime.m12n.ExtensionModuleScanner.scanExtensionModuleFromProperties(ExtensionModuleScanner.java:81)
[ERROR]         at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerExtensionModuleFromProperties(MetaClassRegistryImpl.java:174)
[ERROR]         at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$registerExtensionModuleFromProperties.call(Unknown Source)
[ERROR]         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
[ERROR]         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
[ERROR]         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:144)
[ERROR]         at groovy.grape.GrapeIvy.processCategoryMethods(GrapeIvy.groovy:290)
...

root cause is the change in the plugin dependencies for groovy in https://issues.apache.org/jira/browse/ARCHETYPE-565

@ziad-mesalmi
Copy link

@stefanseifert thanks, but which command should i do? to get download project without errors?

@ziad-mesalmi
Copy link

@stefanseifert
Copy link
Contributor Author

workaround: until the PR #858 is merged and released specify the maven archetype plugin version on the command line to create a new AEM project.

example:

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D archetypeVersion=33 \
 -D appTitle="My Site" \
 -D appId="mysite" \
 -D groupId="com.mysite"

@ziad-mesalmi
Copy link

@stefanseifert thanks a lot

cziegeler pushed a commit that referenced this issue Jan 5, 2022
cziegeler pushed a commit that referenced this issue Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants