gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:22:31 25 4
gpt4 key购买 nike

我是 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. 当我们回车跳过这些行时,是否分配了任何默认值。[这个更重要]

寻找清晰明了的答案或链接。

更新:这些是“选择一个数字..”出现之前的几行..

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:

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

Maven 中有超过 1000 种原型(prototype)可用,当您选择其中任何一种时,它会为您生成并采样 Maven 项目,默认情况下会在 pom.xml 中包含依赖项。

默认情况下 630 基本上用于:remote -> org.apache.maven.archetypes:maven-archetype-quickstart

关于java - 什么是 "Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31780926/

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