adobe / adobe/aem-project-archetype

Error creating archetype 3.3.1

Open
#1,308 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
596
Forks
431
Avg merge
10d 6h
Merged PRs (30d)
1

Description

We are new!.
We have cloned the archetype https://github.com/adobe/aem-project-archetype, specifically the release 56 of develop with https://github.com/adobe/aem-project-archetype.git
We have Java 11, and Maven 3.6.3 installed

Next, inside our directory C:\AEMaem-project-archetype> we run:

**mvn -e -B org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate \ -Dhttps.protocols=TLSv1.2 -DarchetypeGroupId=com.adobe.aem \ -DarchetypeArtifactId=aem-project-archetype \ -DarchetypeVersion=56 \ -DappTitle="AGE AEM Bundle" \ -DappId="age-aem-bundle1-config" \ -DgroupId="com.age.aem.config" \ -DaemVersion=6.5.8 \ -DincludeDispatcherConfig=n \ -Ddatalayer=n**

It creates the directory age-aem-bundle1-config with the pom.xml, but the following error occurs

**[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate (default-cli) on project aem-project-archetype: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate (default-cli) on project aem-project-archetype: Unable to add module to the current project as it is not of packaging type 'pom'**

Do we need to configure or download anything else to create our archetype?

Contributor guide

Open the contributing guide

Research direction

Reproduce the Maven archetype-plugin 3.3.1 command from the issue against release 56 with Java 11 and Maven 3.6.3. Start with the reported packaging error and inspect the cloned archetype project's pom.xml and the generated project's pom.xml. Done means the command creates the project without the 'not of packaging type pom' failure, or the required invocation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.