adobe / adobe/aem-project-archetype
maven-archetype-plugin:3.3.1:generate - Error
- Dominant language
- JavaScript
- Stars
- 596
- Forks
- 431
- Avg merge
- 10d 6h
- Merged PRs (30d)
- 1
Description
The version org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate is throwing
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate (default-cli) on project standalone-pom: startup failed:
[ERROR] Script1.groovy: 2: unable to resolve class groovy.util.XmlSlurper
[ERROR] @ line 2, column 1.
[ERROR] import groovy.util.XmlSlurper
When run
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=52\
-D appTitle="My Site" \
-D appId="mysite" \
-D groupId="com.mysite"
Instruction from Usage section at https://github.com/adobe/aem-project-archetype/
However then change from 3.3.1 to 3.2.1 as below
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=52\
-D appTitle="Demo Site" \
-D appId="demosite" \
-D groupId="com.demosite"
It works successfully
The Archetype version org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate should be fixed
Thanks
Contributor guide
Research direction
Reproduce the Maven archetype generation command shown in the report with versions 3.3.1 and 3.2.1, focusing on the Script1.groovy XmlSlurper error. Done means the 3.3.1 command completes successfully without the reported startup failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100