Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

archtype 54 build error

Avatar

Level 1

Could you please give me advice to fix this error?

I could not build archtype 54 with the following error message.

 

[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]

 

I attached the zipped file which includes the whole build log meesages and mvn setting.xml.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 2

Hi @kino2022 ,

 

This typically happens in AEM archetype builds when:

  1. You’re trying to generate an AEM project inside another Maven module that is not a pom packaging type.
    The maven-archetype-plugin:generate expects to create a new multi-module project. It must be run in a fresh directory, not inside an existing module (like bundle or core).

  2. Wrong working directory
    If you ran the mvn archetype:generate command inside an existing Maven project (e.g., inside ui.apps), Maven tries to add a module to that project. Since that parent isn’t pom, you get this error.

Make sure you run the archetype generation from a clean, empty folder.

Don’t run it inside an existing AEM project folder.

 

If you still hit errors after that: