Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

[Urgent] maven build is failing due to com.adobe.cq.commerce.core.components.models.header does not exist

Avatar

Level 3

 

hello experts,

 

I am trying to run this maven command: (do not need commerce component though)

 

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=35 -DaemVersion="6.5.12" -Dversion="1.0.0" -DappTitle="TestProject" -DappId="TestProject" -DgroupId="com.TestProject" -DincludeFormsenrollment="y" -DincludeFormscommunications="y" -DincludeDispatcherConfig="y"

 

Issue is:

- if included -DincludeDispatcherConfig="y"

- it creates commerce component here: ui.apps\target\generated-sources\htl\org\apache\sling\scripting\sightly\apps\TestProject\components\commerce\logo

- then build fails with the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project TestProject.ui.apps: Compilation failure
[ERROR] /C:/Users/hrai/AEM-Forms/Test-project/ui.apps/target/generated-sources/htl/org/apache/sling/scripting/sightly/apps/TestProject/components/commerce/logo/logo__002e__html.java:[46,95] package com.adobe.cq.commerce.core.components.models.header does not exist

 

Please let me know if someone has faced this issue and if there is any solution. 

0 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now