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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Can Create wknd project

hendrahaqq
Level 1
Level 1

Hi, im very new with aem, and im trying to follow tutorial from this site,
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-devel...

 

hendrahaqq_0-1626149399576.png

But i got this error when running this command

hendrahaqq_1-1626149442847.png

and heres my java and mvn version

hendrahaqq_2-1626149495493.png

can u guys help me whats wrong? and how to resolve this peoblem, thank you.

1 Accepted Solution
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

@hendrahaqq Welcome to Adobe Experience League Community, a great place to Collaborate and Learn. I just tried with the below command and it run perfectly fine.

 

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26 -D appTitle="WKND Sites Project" -D appId="wknd" -D groupId="com.adobe.aem.guides.wknd" -D artifactId="aem-guides-wknd" -D version="0.0.1-SNAPSHOT" -D aemVersion="cloud"

 

Can you please confirm once?

View solution in original post

3 Replies
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

@hendrahaqq Welcome to Adobe Experience League Community, a great place to Collaborate and Learn. I just tried with the below command and it run perfectly fine.

 

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26 -D appTitle="WKND Sites Project" -D appId="wknd" -D groupId="com.adobe.aem.guides.wknd" -D artifactId="aem-guides-wknd" -D version="0.0.1-SNAPSHOT" -D aemVersion="cloud"

 

Can you please confirm once?

View solution in original post

Rajashankar
Level 4
Level 4

Hi @hendrahaqq 

I hope youre executing this mvn generate command of archetype inside a folder where a pom already exists(may be a git checkout project). Please create a empty folder and execute this command from that folder.

 

Please refer the thread : https://github.com/adobe/aem-project-archetype/issues/99

 

Hope this helps.

 

Regards,

Raja

hendrahaqq
Level 1
Level 1

Hi thanks for replying, yes i created empty folder and created my own pom.xl and run the command there.

but the link you give said that i need to run the command in the directory without pom.xml. 

 

heres the content of my pom.xml

 

Spoiler
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.adobe.aem.guides.wknd</groupId>
<artifactId>aem-guides-wknd</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

</project>