use this below command to create a project by using maven archetype
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=15 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/
Download it from below site:
https://repo.maven.apache.org/maven2/com/adobe/granite/archetypes/aem-project-archetype/15/
download --> aem-project-archetype-15.maven-archetype
rename it as --> aem-project-archetype-15.jar
and paste that aem-project-archetype-15.jar file in below path:
C:\Users\........\.m2\repository\com\adobe\aem\aem-project-archetype\35
paste it here but still its show error.
like below:
Solved! Go to Solution.
Views
Replies
Total Likes
HI @Rahul_mule
I tried the same command and it worked for me. Can you add the adobe profile in your settings.xml and try (if not done already)
<profile>
<id>adobe-public</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<releaseRepository-Id>adobe-public-releases</releaseRepository-Id>
<releaseRepository-Name>Adobe Public Releases</releaseRepository-Name>
<releaseRepository-URL>https://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>
</properties>
<repositories>
<repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>adobe-public</activeProfile>
</activeProfiles>
Hope this helps!
Thanks,
Kiran Vedantam.
HI @Rahul_mule
I tried the same command and it worked for me. Can you add the adobe profile in your settings.xml and try (if not done already)
<profile>
<id>adobe-public</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<releaseRepository-Id>adobe-public-releases</releaseRepository-Id>
<releaseRepository-Name>Adobe Public Releases</releaseRepository-Name>
<releaseRepository-URL>https://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>
</properties>
<repositories>
<repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>adobe-public</activeProfile>
</activeProfiles>
Hope this helps!
Thanks,
Kiran Vedantam.
Hi @Rahul_mule
I can able to build project using above command
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=15 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/
Below are my specifications
AEM: 6.5.11
Java: 11.0.14.1
Maven: 3.8.3
Also, I can see you have added jar under 35 (C:\Users\........\.m2\repository\com\adobe\aem\aem-project-archetype\35) ignore if its just a mistake.
Looking into above failure error, it seems you need to have proper proxy settings, check if you have proper certificates which allows to download jar while building project. (I guess you are using organization's machine where such problems we usually face - which requires additional configurations)
Hope that helps!
Regards,
Santosh