maven 创建项目下载包的时候出错

为了那份宁静 2010-01-27 10:33:31
E:\Tapestry\Work>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
rchetypeArtifactId=quickstart -DgroupId=com.packtpub -DartifactId=t5first -D
ageName=com.packpub.t5first -Dversion=1.0.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ---------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO] ---------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.pl
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create {execution: default-cli}]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] ---------------------------------------------------------------------
---
[INFO] Using following parameters for creating OldArchetype: quickstart:RELE
[INFO] ---------------------------------------------------------------------
---
[INFO] Parameter: groupId, Value: com.packtpub
[INFO] Parameter: packageName, Value: com.packpub.t5first
[INFO] Parameter: package, Value: com.packpub.t5first
[INFO] Parameter: artifactId, Value: t5first
[INFO] Parameter: basedir, Value: E:\Tapestry\Work
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] ---------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
[INFO] ---------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ---------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jan 27 10:27:11 CST 2010
[INFO] Final Memory: 8M/14M
[INFO] ---------------------------------------------------------------------
E:\Tapestry\Work>
...全文
100 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
chmicrosoft 2011-03-26
  • 打赏
  • 举报
回复
下载最新的maven 2.0.11并安装,然后将你的命令写成:

mvn archetype:generate -DarchetypeGroupId=org.apache.tapestry
rchetypeArtifactId=quickstart -DgroupId=com.packtpub -DartifactId=t5first -D
ageName=com.packpub.t5first -Dversion=1.0.0-SNAPSHOT

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧