无法在 sts 中创建 maven Web 应用程序项目



当我在sts中创建maven webapp项目时,我遇到了以下问题:

could not resolve archetype
archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 
from any of the configured repositories

我该如何解决这个问题?

通过将Maven原型目录添加到Eclipse来修复它。步骤如下:

打开窗口>首选项 打开Maven>原型 单击"添加远程目录"并添加以下内容: 目录文件: http://repo1.maven.org/maven2/archetype-catalog.xml 描述: 专家目录

最新更新