When I use idea to create a simple web project, there are no SRC, webapp files and so on under the project. And the following errors are reported:
The desired archetype does not exista (org.apache. maven archetypes :maven- archetype webapp:RELEASE)
The specific errors are as follows:
[WARNING] The metadata D:\apache-maven-3.6.1\maven-repository\org\apache\maven\archetypes\maven-archetype-webapp\maven-metadata-alimaven.xml is invalid: entity reference name can not contain character ='
Solution:
1. Find the error path (such as the path indicated in bold and underlined above) through the error information above, and find the maven-archetype-webapp folder in your local warehouse
2. Delete files other than folders (such as XML files), and only keep version folders (such as 4.1 folder, 3.1 folder, etc.)
3. Reload the project (or rebuild the project).
Read More:
- IDEA Create maven project error: Error running‘[org.apache.maven.pluginsmaven-archetype-pluginRELEASE
- Idea create Maven project Error: [error] no longer supports source option 1.5. Please use version 1.6 or higher, and the idea reports an error: error: Java does not support the error of release version 5
- [Solved] Maven Project Error: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [Solved] IDEA Add maven Project Error: Error:(3,21)java: Package javax.servletdoes not exist
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- IDEA Maven Fail to Download Dependencies Error: ERROR – #org.jetbrains.idea.maven – Cannot reconnect.
- [Solved] Idea Failed to recognize Maven and Project Error
- [Solved] IDEA Maven Error: Cannot resolve xxx & Maven Dependencies Error
- [Solved] Error:Maven Resources Compiler: Maven project configuration required for module ‘XX‘ isn‘t available
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- [Solved] IDEA Start Maven Project Error: “Error starting ApplicationContext. To display the conditions report …”
- [Solved] Idea 2021.3 Maven 3.8.1 Error: Blocked mirror for repositories
- Maven Project Right-Click -update project Error [How to Solve]
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- [Solved] org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject…
- [Solved] Maven Project Error: error in opening zip file
- [ERROR] Failed to execute goal on project simple-project: Could not resolve dependencies for project
- IDEA Package Error: No valid Maven installation found.
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- IDEA Maven pom.xml is grayed out and strikethrough appears