运行 mvn archetype:generate 时出错

Error when running mvn archetype:generate

我正在尝试 运行 一个 maven 命令来生成项目结构,但我收到以下错误:

Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata. org.apache.maven.plugins:maven-archetype-plugin:pom:3.0.2-SNAPSHOT

我认为问题在于 Maven 使用的是 maven-archetype-plugin 的 3.0.2-SNAPSHOT 版本,但我不知道在哪里可以更改它。 我还查看了 mvn 搜索工件的存储库,但没有找到这个版本。
有谁知道问题是什么或者我可以在哪里更改 版本的 maven-archetype-plugin
更新 我正在使用 Maven 2.2.1

您可以这样尝试 运行:mvn org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate

这将强制使用 maven-archetype-plugin 版本。

看到here,没有3.0.1以上的版本