Why is Hibernate 4.2 using jandex and classmate if its Maven POM defines them as test scope?

后端 未结 1 610
轮回少年
轮回少年 2020-12-06 15:46

I\'m developing a simple example with Hibernate, using it outside any container. I\'m using Maven, and thus configured the JBoss repository (see https://community.jboss.org/

1条回答
  •  北海茫月
    2020-12-06 15:49

    Jandex and Classmate are not required for the main Hibernate functionality. They are required however for the metadata generation (reference). In order to not break things for people that don't use the metadata generation they added the dependencies as test dependencies. If you're using the metadata generation you will need to obtain those dependencies.

    0 讨论(0)
提交回复
热议问题