我是Maven的新手,尝试使用命令行创建Maven项目。
当我从命令行运行mvn archetype: generate
时,
在所有过程完成后的第一件事是:
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains)
我知道我们可以通过按Enter键来跳过这些内容。但我真的想知道这些行到底是什么?我查了Google,但没有给出简明扼要的答案。
- 为什么以及如何选择一个数字,它与过滤器有什么关系(因为过滤器和数字在OR逻辑中)。
- 如果我们可以跳过这些内容,那么为什么Maven还会提供这些内容。
- 为什么会特别显示这个数字630。
- 如果我们通过按Enter键跳过这些行,是否会分配任何默认值?(这更重要)
希望得到简明扼要的答案或链接。
更新: “选择数字”出现之前的几行是这些..
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 -v
)。 - hoijui