【发布时间】:2011-02-17 21:25:40
【问题描述】:
我正在寻找一个基本的 maven 原型,它可以帮助我创建一个 spring hibernate struts2
应用程序。我曾尝试使用 appfuse,但它很糟糕。花了半个多小时
下载 n 个依赖项,它创建的项目也有错误。
如果你知道任何其他 maven 原型,请告诉我。
谢谢
谢卡尔
【问题讨论】:
标签: spring hibernate maven-2 struts2 maven-archetype
我正在寻找一个基本的 maven 原型,它可以帮助我创建一个 spring hibernate struts2
应用程序。我曾尝试使用 appfuse,但它很糟糕。花了半个多小时
下载 n 个依赖项,它创建的项目也有错误。
如果你知道任何其他 maven 原型,请告诉我。
谢谢
谢卡尔
【问题讨论】:
标签: spring hibernate maven-2 struts2 maven-archetype
如果没有适合您的原型,只需使用默认原型,并添加您自己需要的依赖项。
如果您遇到下载问题,请为您的远程存储库使用不同的镜像。
【讨论】:
如果 appfuse 无法正常工作,请考虑发布报告的错误。 此外,如 this 博客文章中所述,为 spring/hibernate/struts2 应用程序创建您自己的 maven 原型。
【讨论】:
mvn archetype:create \
-DarchetypeGroupId=org.appfuse.archetypes \
-DarchetypeArtifactId=appfuse-basic-struts \
-DremoteRepositories=http://static.appfuse.org/releases \
-DarchetypeVersion=2.0.1 \
-DgroupId=fr.xebia.blog.voiture \
-DartifactId=voiture-app
【讨论】: