Adding JBoss AS 7 modules on Eclipse using Maven or JBoss Tools

牧云@^-^@ 提交于 2019-12-01 13:07:41

Take a look at these links:

I would say adding the hibernate-core as "provided" on your pom and adding

Dependency: org.hibernate

to your META-INF/MANIFEST.MF or

<dependencies>
    <module name="org.hibernate" />
</dependencies>

to jboss-deployment-structure.xml is the way to go. This way you get runtime access to Hibernate bundled with JBoss without including them in your deployment. Just make sure you use the same version of Hibernate that comes with JBoss (Hibernate 4.0.1 for JBoss AS 7.1.1). Also check out the Developer Guide.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!