0
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>0.23.0.RELEASE</version>
</dependency> 

I have added this Spring hateoas dependency in my pom.xml still my project is taking version as 0.25.1. I want version 0.23.0.

shahaf
  • 4,442
  • 2
  • 25
  • 31
Priyanka Taneja
  • 413
  • 1
  • 3
  • 17

1 Answers1

0

For checking what dependency 'win' You can lunch

mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas::

I recommended you to read https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

Focus on <dependencyManagement> tag, which allows You to control transitive dependency(I think this cause your problem)

See Differences between dependencyManagement and dependencies in Maven

snieguu
  • 1,945
  • 2
  • 15
  • 33