有人能告诉我当我键入 mvn archetype:generate 时 Maven 从哪个 url 下载原型吗?
Can someone tell me from which url Maven downloads the archetypes when i type mvn archetype:generate?
我似乎无法在 cmd 中找到 maven 的原型。该列表太长,cmd 似乎只显示 1420 个原型的最后一个条目。同样在 eclipse 上也显示了一些 Maven 项目的原型?
默认情况下,Maven 查找原型:
- 在以下远程目录中:http://repo1.maven.apache.org/maven2/archetype-catalog.xml。
- 在您的 m2 用户文件夹中的目录中。
这记录在 maven-archetype-plugin
的 archetypeCatalog
attribute of the generate
目标中。此属性的默认值为 remote,local
,其中:
- 'local' 是 'file://~/.m2/archetype-catalog.xml'
的快捷方式
- 'remote' 是 Maven 中央存储库的快捷方式,即 'http://repo.maven.apache.org/maven2'
我似乎无法在 cmd 中找到 maven 的原型。该列表太长,cmd 似乎只显示 1420 个原型的最后一个条目。同样在 eclipse 上也显示了一些 Maven 项目的原型?
默认情况下,Maven 查找原型:
- 在以下远程目录中:http://repo1.maven.apache.org/maven2/archetype-catalog.xml。
- 在您的 m2 用户文件夹中的目录中。
这记录在 maven-archetype-plugin
的 archetypeCatalog
attribute of the generate
目标中。此属性的默认值为 remote,local
,其中:
- 'local' 是 'file://~/.m2/archetype-catalog.xml' 的快捷方式
- 'remote' 是 Maven 中央存储库的快捷方式,即 'http://repo.maven.apache.org/maven2'