Expand my Community achievements bar.

SOLVED

Creating project using archetype 39 failed

Avatar

Level 2

When trying to create an AEM project using archetype 39, it shows build failure.

 

Command Used: mvn -B archetype:generate \ -D archetypeGroupId=com.adobe.aem \ -D archetypeArtifactId=aem-project-archetype \ -D archetypeVersion=39 \ -D aemVersion=cloud \ -D appTitle="My Site" \ -D appId="mysite" \ -D groupId="com.mysite" \ -D frontendModule=general \ -D includeExamples=n

 

Error Message while creating project using archetype 39 is as below:

srk381_0-1675774394150.png

 

Below are the configurations that I have on my local:

 

Java version: 11.0.16.1

srk381_1-1675774432324.png

 

Maven Version: Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)

srk381_2-1675774453454.png

 

Can someone help me on it please? Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Can you open command prompt as administrator and try?

View solution in original post

7 Replies

Avatar

Community Advisor

Hi @srk381 
Can you please try this command by opening cmd as adminstrator
mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=39 -DaemVersion=cloud -DappTitle="My Site" -DappId="mysite" -DgroupId="com.mysite" -DfrontendModule=general -DincludeExamples=n

krishna_sai_0-1675775738882.png

 



Hope this works,

Thanks,

Krishna

Avatar

Community Advisor

Hi @srk381,

Try using the following command:

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=39 -D aemVersion=cloud -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D frontendModule=general

mvn archtype.png

mvn archtype1.png


I hope this helps.

Avatar

Level 2

When using the command mentioned above, it still shows following error for me:

srk381_0-1675792719052.png

 

Avatar

Correct answer by
Community Advisor

Can you open command prompt as administrator and try?

Avatar

Community Advisor

Hi @srk381 ,

 

Try removing backslash '\' from your command and see if it resolves the issue. I see similar kind of issue reported below-

 

https://stackoverflow.com/questions/12593628/maven-error-no-pom-in-this-project-when-performing-arch...

 

Thanks,

Ritesh Mittal

Avatar

Community Advisor

@srk381 Looks like there are some extra spaces after -D in your cmd, also you could remove '\'. You could try this -

mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=39 -DaemVersion=cloud -DappTitle="My Site" -DappId="mysite" -DgroupId="com.mysite" -DfrontendModule=general -DincludeExamples=n

This should work.