recently encountered this error while generating a project in my intellij.
[ERROR] BUILD FAILURE
[INFO] ————————————————————————
[INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-webapp:RELEASE)
The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-webapp:RELEASE)
Solution: The archtypes are downloaded from the maven central repo, so make sure the repo is specified in your .m2/settings.xml
In the settings.xml, under profiles->profile->repositories add the maven central repo url
<profiles> <profile> <repositories>
<repository>
<releases> <enabled>true</enabled> </releases>
<snapshots><enabled>true</enabled></snapshots>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
……
</repositories> </profile> </profiles>
Tip: Check if the url ‘https://repo1.maven.org/maven2‘ works first , else give a repo which works.