gpt4 book ai didi

maven-2 - mvn 原型(prototype) :generate does not work-no plugin found for prefix 'archetype'

转载 作者:行者123 更新时间:2023-12-03 10:12:11 24 4
gpt4 key购买 nike

我想使用现有的原型(prototype)构建一个简单的项目。但是我不能运行mvn archetype:generate因为它不断告诉我以下信息

[ERROR] No plugin found for prefix 'archetype' in the current project and in the
plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the
repositories [local (C:\Documents and Settings\ccen\.m2\repository), central (ht
tp://repo1.maven.org/maven2)] -> [Help 1]

我使用的是 MS Windows 并没有使用任何 settings.xml在我的 ~/.m2 文件夹中,所有东西都是全新的。任何人都可以帮我弄清楚吗?

最佳答案

可能出错的另一件事是您的机器位于防火墙或代理后面,因此您的机器无法访问http://repo1.maven.org/maven2。 .尝试直接在浏览器中访问此 URL 或测试您是否能够发出请求。

关于maven-2 - mvn 原型(prototype) :generate does not work-no plugin found for prefix 'archetype' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6472782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com