使用Maven2创建项目失败

cancer2000 2008-04-01 11:54:20
我使用Maven2创建项目,创建命令:mvn archetype:create -DgroupId=cn.gwssi.cpees -DartifactId=cpees
报错如下:
[INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking
for updates from central
[WARNING] repository metadata for: 'artifact org.apache.maven.archetypes:maven-a
rchetype-quickstart' could not be retrieved from repository: central due to an e
rror: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-quickstart
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=
maven-archetype-quickstart \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave
n-archetype-quickstart \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]


org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE

请高手指教。
...全文
1285 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
cancer2000 2008-04-08
  • 打赏
  • 举报
回复
问题自己搞定了!我参考了这个帖子:
http://www.blogjava.net/zjibo/articles/181105.html
谢谢各位!
紫翎观星 2008-04-07
  • 打赏
  • 举报
回复
你的机器连外网了吗?
使用Maven2挺费劲,看这个www.javaeye.com/topic/156016。
lyboyc 2008-04-01
  • 打赏
  • 举报
回复
似乎版本问题,重装下吧
Reason: Unable to determine the release version
lyboyc 2008-04-01
  • 打赏
  • 举报
回复
你这样建看看:mvn archetype:create -DgroupId=cn -DartifactId=cn.gwssi.cpees
chenhongxin 2008-04-01
  • 打赏
  • 举报
回复
.M2里的包是全的吗,
miaoliujun 2008-04-01
  • 打赏
  • 举报
回复
错误提示你的插件不全,在下载的时候又出错了
建议重新下载并安装,或者下载后覆盖你现在的maven_home文件,且删除.mvn目录

67,538

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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