关于appfuse2下载的问题!急求100分

changzhang 2008-03-05 08:38:45
我在使用maven2.0下载appfuse时,下载不了,不知道怎么会时,大家帮我看一下。
mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
然后出现如下错误:
Error creating from archetype

Embedded error: oldArchetype does not exist.
hhtp://repo1.maven.org/maven2/org/appfuse/appfuse-basic-struts/2.0-m5/appfuse-baseic-struts-2.0-m5.jar

我感觉应该是这个jar文件老了,不存在,但是我不知道在mvn后的参数应该怎么改,新的文件名去哪里找。
我想用appfuse建立一个使用struts2.0+spring+hibernate的项目,
各位有用过的给讲下,谢谢啦!
...全文
356 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ticlej 2008-03-07
  • 打赏
  • 举报
回复
升级到2.0.1吧;我用过v2.0-m4,v2.0.1都没有问题;
version 2.0.1.:
mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-modular-struts
-DremoteRepositories=http://static.appfuse.org/releases
-DarchetypeVersion=2.0.1 -DgroupId=com.ticlej.appfuse
-DartifactId=appfuse

version: 2.0-m4
mvn archetype:create -DarchetypeGroupId=org.appfuse
-DarchetypeArtifactId=appfuse-modular-struts
-DremoteRepositories=http://static.appfuse.org/repository
-DarchetypeVersion=2.0-m4 -DgroupId=com.ticlej.appfuse
-DartifactId=appfuse

睿音 2008-03-05
  • 打赏
  • 举报
回复
你可以去http://repo1.maven.org/maven2/org/appfuse/看一下,maven2官方是没有你这样路径的包的。所以才会提示

not exist不存在。2.0的包在官方是有的。按照官方的路径重新改写下你的pom文件就可以导入了。

对于第2个问题,网上搜索下吧。网上有不少的相关资料。

67,516

社区成员

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

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