Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Can Create wknd project

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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?

Avatar

Community Advisor

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

Avatar

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>