Deploy and build the project Error | Community
Skip to main content
May 17, 2025
Solved

Deploy and build the project Error

  • May 17, 2025
  • 1 reply
  • 611 views

Hi all,

 

I am deploying the WKND project using "mvn clean install -PautoInstallSinglePackage" command.

https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/project-setup

 

It is failing with the below errors:

 

C:\Rama\Adobe\WKND Site\code\aem-guides-wknd>mvn clean install -PautoInstallSinglePackage
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] WKND Sites Project [pom]
[INFO] WKND Sites Project - Core [jar]
[INFO] WKND Sites Project - UI Frontend [pom]
[INFO] WKND Sites Project - Repository Structure Package [content-package]
[INFO] WKND Sites Project - UI apps [content-package]
[INFO] WKND Sites Project - UI content [content-package]
[INFO] WKND Sites Project - UI config [content-package]
[INFO] WKND Sites Project - All [content-package]
[INFO] WKND Sites Project - Integration Tests [jar]
[INFO] WKND Sites Project - Dispatcher [pom]
[INFO] WKND Sites Project - UI Tests [jar]
[INFO]
[INFO] ----------------< com.adobe.aem.guides:aem-guides-wknd >----------------
[INFO] Building WKND Sites Project 0.0.1-SNAPSHOT [1/11]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.0.0:clean (default-clean) @ aem-guides-wknd ---
[INFO]
[INFO] --- enforcer:3.0.0:enforce (enforce-maven) @ aem-guides-wknd ---
[INFO]
[INFO] --- install:2.5.2:install (default-install) @ aem-guides-wknd ---
[INFO] Installing C:\Rama\Adobe\WKND Site\code\aem-guides-wknd\pom.xml to C:\Users\User\.m2\repository\com\adobe\aem\guides\aem-guides-wknd\0.0.1-SNAPSHOT\aem-guides-wknd-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] -------------< com.adobe.aem.guides:aem-guides-wknd.core >--------------
[INFO] Building WKND Sites Project - Core 0.0.1-SNAPSHOT [2/11]
[INFO] from core\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/com/adobe/aem/uber-jar/6.5.14/uber-jar-6.5.14.pom
[WARNING] The POM for com.adobe.aem:uber-jar:jar:6.5.14 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/adobe/aem/uber-jar/6.5.14/uber-jar-6.5.14.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for WKND Sites Project 0.0.1-SNAPSHOT:
[INFO]
[INFO] WKND Sites Project ................................. SUCCESS [ 1.027 s]
[INFO] WKND Sites Project - Core .......................... FAILURE [ 3.808 s]
[INFO] WKND Sites Project - UI Frontend ................... SKIPPED
[INFO] WKND Sites Project - Repository Structure Package .. SKIPPED
[INFO] WKND Sites Project - UI apps ....................... SKIPPED
[INFO] WKND Sites Project - UI content .................... SKIPPED
[INFO] WKND Sites Project - UI config ..................... SKIPPED
[INFO] WKND Sites Project - All ........................... SKIPPED
[INFO] WKND Sites Project - Integration Tests ............. SKIPPED
[INFO] WKND Sites Project - Dispatcher .................... SKIPPED
[INFO] WKND Sites Project - UI Tests ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.796 s
[INFO] Finished at: 2025-05-17T19:46:52+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project aem-guides-wknd.core: Could not resolve dependencies for project com.adobe.aem.guides:aem-guides-wknd.core:jar:0.0.1-SNAPSHOT
[ERROR] dependency: com.adobe.aem:uber-jar:jar:6.5.14 (provided)
[ERROR] com.adobe.aem:uber-jar:jar:6.5.14 was not found in https://repo.adobe.com/nexus/content/groups/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of adobe-public-releases has elapsed or updates are forced
[ERROR] Could not find artifact com.adobe.aem:uber-jar:jar:6.5.14 in central (https://repo.maven.apache.org/maven2)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :aem-guides-wknd.core

 

Kindly suggest.

 

Thanks,

RK.

Best answer by nsvsrk

Using the correct AEM version number in building and deploying the project has fixed the issue.

 

Thanks,

RK.

1 reply

nsvsrkAuthorAccepted solution
May 17, 2025

Using the correct AEM version number in building and deploying the project has fixed the issue.

 

Thanks,

RK.

Lokesh_Vajrala
Community Advisor
Community Advisor
May 19, 2025

Glad you were able to fix it! Would you mind sharing the version and any other changes you made for a successful deployment? This could help with future searches.

 

Thanks

Lokesh

nsvsrkAuthor
May 19, 2025

My AEM Version is 6.5.21.

 

1. I used the below command:
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=39 -D appTitle="WKND Sites Project" -D appId="wknd" -D groupId="com.adobe.aem.guides" -D artifactId="aem-guides-wknd" -D package="com.adobe.aem.guides.wknd" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.21".

 

Command suggested in the tutorial was aemVersion="6.5" for AEM 6.4 or 6.5..

Tutorial should have told this point very clearly.

 

2. Somehow "\" was not working for me (Windows) and it was taking the first line as the entire command and failing.

Command suggested in the tutorial goes like this:

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
    -D archetypeGroupId=com.adobe.aem \

So, I removed all carriage returns (enters) and "\"s and made it one single line looking like in point No-1 above.

Yes, readability aspect got hit, but I do not know how else to proceed.

 

Thanks,

RK.