Can Create wknd project | Community
Skip to main content
July 13, 2021
Solved

Can Create wknd project

  • July 13, 2021
  • 2 replies
  • 1406 views

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-develop/project-archetype/project-setup.html?lang=en

 

But i got this error when running this command

and heres my java and mvn version

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

@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?

2 replies

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
July 13, 2021

@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?

RajaShankar
Community Advisor
Community Advisor
July 13, 2021

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

July 14, 2021

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

 

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