gpt4 book ai didi

java - 在 Maven 原型(prototype)中找不到 dukes-age,一个 javaee7 示例

转载 作者:行者123 更新时间:2023-12-01 18:28:37 25 4
gpt4 key购买 nike

我可以在哪里或如何下载 dukes-age sample ?显然,它应该可以从 Maven 获得:

From the File menu, select New Project. Under Categories, select Maven. Under Projects, select Project from Archetype. Click Next. In the Search field, enter dukes-age. In the Known Archetypes field, select dukes-age-archetype.

自从wasn't showing in netbeans ,我转向 CLI:

thufir@dur:~/maven$ 
thufir@dur:~/maven$ mvn archetype:generate -Dfilter=dukes
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Your filter doesn't match any archetype, so try again with another value.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.943s
[INFO] Finished at: Mon Aug 04 12:57:12 PDT 2014
[INFO] Final Memory: 10M/25M
[INFO] ------------------------------------------------------------------------
thufir@dur:~/maven$
thufir@dur:~/maven$ mvn -v
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-i386/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "i386", family: "unix"
thufir@dur:~/maven$

但是,到目前为止,得到了类似的结果。我需要指定一个存储库或类似的东西吗?

最佳答案

原型(prototype)未部署到 Maven Central。但您仍然可以从此处的源代码构建和使用 arche 类型:https://svn.java.net/svn/firstcup~svn/trunk/example/archetypes/dukes-age-archetype/

关于java - 在 Maven 原型(prototype)中找不到 dukes-age,一个 javaee7 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25126632/

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