使用Spring,Spring MVC,Hibernate,JPA进行项目的Maven 3原型 [英] Maven 3 Archetype for Project With Spring, Spring MVC, Hibernate, JPA

查看:94
本文介绍了使用Spring,Spring MVC,Hibernate,JPA进行项目的Maven 3原型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Maven 3创建一个使用Spring 3,Spring MVC,Hibernate 4和JPA的项目.但是,当我执行时:

I'm trying to use Maven 3 to create a project which uses Spring 3, Spring MVC, Hibernate 4, and JPA. However, when I execute:

mvn archetype:generate

列出的所有原型都不包括所有这些原型.甚至那些接近的项目似乎都是特殊的项目,例如使用Flex的项目.我想避免使用诸如Flex之类的多余模块,这些模块会挤满项目和配置文件.那么,我可以使用Maven 3的原型来创建这样的项目吗?

Non of the archetypes listed include all of these; and even those which are close seem to be special projects such as projects with Flex. I want to avoid having extra modules such as Flex that would crowd the project and configuration files. So, is there an archetype for Maven 3 that I can use to create such a project?

推荐答案

可能重复:也就是说,我鼓励您考虑建立自己的原型.原因是,无论您最终从别人那里得到什么,您都可以在不多的时间内做得更好,而一个体面的Java项目最终将导致大量的jar项目.

That said, I would encourage you to think about making your own archetype. The reason is, no matter what you end up getting from someone else's, you can do better in not that much time, and a decent sized Java project is going to end up making a lot of jar projects.

这篇关于使用Spring,Spring MVC,Hibernate,JPA进行项目的Maven 3原型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆