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

前端 未结 2 1502
别那么骄傲
别那么骄傲 2021-01-15 19:01

I\'m migrating my project to JBoss AS 7, and I\'ve read a little about its modules. My problem is simple (I think), I have no idea how to include this modules during develop

2条回答
  •  终归单人心
    2021-01-15 19:49

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

    Dependency: org.hibernate
    

    to your META-INF/MANIFEST.MF or

    
        
    
    

    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.

提交回复
热议问题