Hibernate Search 6 с Hibernate 6JAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Hibernate Search 6 с Hibernate 6

Сообщение Anonymous »

Я пытаюсь настроить проект Spring Boot 3.0.1 с нуля, используя последние версии. На данный момент мне удалось заставить работать mvc и репозитории, но при добавлении Hibernate Search все больше не работает.
Ниже вы можете увидеть мой файл pom.xml.< /p>
Когда я перехожу к «Иерархии зависимостей» (Eclipse STS), я могу найти hibernate-core 5.6.11.Final, встроенный в hibernate-search-mapper-pojo-base 6.1 .7.Final, который встроен в hibernate-search-mapper-orm 6.1.7.Final. Означает ли это, что мне придется вручную исключить эту версию и включить более позднюю версию? Также в hibernate-core 5.6.11.Final встроены аннотации hibernate-commons-annotations 5.1.2.Final. Почему это так сложно? Я что-то упускаю?
В журнале консоли я получаю следующее:
***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.hibernate.cfg.annotations.BasicValueBinder.resolveJavaType(BasicValueBinder.java:1002)

The following method did not exist:

'java.lang.reflect.Type org.hibernate.annotations.common.reflection.ReflectionManager.toType(org.hibernate.annotations.common.reflection.XClass)'

The calling method's class, org.hibernate.cfg.annotations.BasicValueBinder, was loaded from the following location:

jar:file:/C:/Users/Hrvoje/.m2/repository/org/hibernate/orm/hibernate-core/6.1.6.Final/hibernate-core-6.1.6.Final.jar!/org/hibernate/cfg/annotations/BasicValueBinder.class

The called method's class, org.hibernate.annotations.common.reflection.ReflectionManager, is available from the following locations:

jar:file:/C:/Users/Hrvoje/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.1.2.Final/hibernate-commons-annotations-5.1.2.Final.jar!/org/hibernate/annotations/common/reflection/ReflectionManager.class

The called method's class hierarchy was loaded from the following locations:

org.hibernate.annotations.common.reflection.ReflectionManager: file:/C:/Users/Hrvoje/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.1.2.Final/hibernate-commons-annotations-5.1.2.Final.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.hibernate.cfg.annotations.BasicValueBinder and org.hibernate.annotations.common.reflection.ReflectionManager



4.0.0

org.springframework.boot
spring-boot-starter-parent
3.0.1


net.horvoje
TheVegCat2
1.0
war
TheVegCat2
The Vegan Catalog II

17



org.springframework.boot
spring-boot-starter-cache


org.springframework.boot
spring-boot-starter-data-jpa


org.springframework.boot
spring-boot-starter-security


org.springframework.boot
spring-boot-starter-thymeleaf


org.springframework.boot
spring-boot-starter-web


org.thymeleaf.extras
thymeleaf-extras-springsecurity6



org.springframework.boot
spring-boot-devtools
runtime
true


com.h2database
h2
runtime


com.mysql
mysql-connector-j
runtime


org.springframework.boot
spring-boot-configuration-processor
true


org.projectlombok
lombok
true


org.springframework.boot
spring-boot-starter-tomcat
provided


org.springframework.boot
spring-boot-starter-test
test


org.springframework.security
spring-security-test
test





org.hibernate.search
hibernate-search-mapper-orm
6.1.7.Final



org.hibernate.search
hibernate-search-backend-lucene
6.1.7.Final









org.springframework.boot
spring-boot-maven-plugin



org.projectlombok
lombok











Подробнее здесь: https://stackoverflow.com/questions/750 ... ibernate-6
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»