什么是 "Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains)"

What is "Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains)"

我是 Maven 新手,尝试使用命令行创建 Maven 项目。 当我从命令行 运行 mvn archetype:generate 所有流程完成后的第一件事是:

Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains)

我知道我们可以按 Enter 键跳过这些。但我真的很想知道这些线到底是什么?我用谷歌搜索,但没有给出明确而简单的答案。 我的问题是:

  1. 为什么以及如何选择一个数字,它与过滤器的关系如何(因为过滤器和数字在 OR 中)。
  2. 我们可以跳过这些然后为什么它是由 Maven 给出的..
  3. 为什么专门显示这个数字630
  4. 回车跳过这几行的时候有没有赋默认值[这个比较重要]

寻找清晰明了的答案或link。

更新:这些是 "choose a number.." 出现之前的几行..

1380: remote -> tr.com.lucidcode:kite-archetype (A Maven Archetype that allows u
sers to create a Fresh Kite project)
1381: remote -> uk.ac.rdg.resc:edal-ncwms-based-webapp (-)
1382: remote -> uk.co.nemstix:basic-javaee7-archetype (A basic Java EE7 Maven ar
chetype)
1383: remote -> us.fatehi:schemacrawler-archetype-maven-project (-)
1384: remote -> us.fatehi:schemacrawler-archetype-plugin-command (-)
1385: remote -> us.fatehi:schemacrawler-archetype-plugin-dbconnector (-)
1386: remote -> us.fatehi:schemacrawler-archetype-plugin-lint (-)
**Choose a number or apply filter (format: [groupId:]artifactId, case sensitive co
ntains): 630:**
Choose org.apache.maven.archetypes:maven-archetype-quickstart version:
1: 1.0-alpha-1
2: 1.0-alpha-2
3: 1.0-alpha-3
4: 1.0-alpha-4
5: 1.0
6: 1.1
Choose a number: 6:

命令 mvn archetype:generate:

从原型生成新项目,或者如果使用部分原型则更新实际项目。如果项目是完全生成的,则在其artifactId对应的目录下生成。如果使用部分原型更新项目,则在当前目录中完成。

Maven 中有超过 1000 种原型可用,只要您 select 中的任何一种,它都会为您生成和采样 Maven 项目,其中将包含 pom.xml 中的依赖项默认。

630 默认情况下主要用于:remote -> org.apache.maven.archetypes:maven-archetype-quickstart