how to know which versions of hibernate/spring data are used in spring-boot project?
Asked Answered
W

4

6

i work with a spring-boot project,

 <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
     <version>2.2.4.RELEASE</version>
 </parent>

How can i check.. :

  • which version of hibernate is linked to my project ?
  • which version of spring-data is linked to my project ?

could you explain me the good workflow in my Eclipse IDE to check this ?

Witherspoon answered 17/11, 2020 at 7:26 Comment(0)
T
7

You have two options:

  • Using your IDE under Dependencies Section
  • Using terminal - mvn dependency:tree
Trill answered 17/11, 2020 at 7:37 Comment(0)
H
1

In your eclipse IDE when you open pom.xml, few tab like structures will come below like shown in below picture.

pic1

In this you can go to dependency hierarchy section which will show you both dependency hierarchy and resolved dependency. In resolved dependencies you can search for whichever jar you want like hibernate/spring-data and see which version is getting used. Below is a picture for your reference which shows commons-httpclient jar with version 2.0.2 getting used.

pic2

Hubert answered 17/11, 2020 at 11:17 Comment(0)
B
0

In Eclipes IDE double click on your project . click on show in > terminal then write comand -> mvn dependency:tree hit enter you will see all the dependency of that project

Boiler answered 19/5, 2021 at 5:17 Comment(0)
G
0

Simple as that:

public static void main(String[] args) {
    System.out.println(org.hibernate.Version.getVersionString());
}
Grimbald answered 8/10 at 7:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.