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,750
  • 2
  • 29
  • 32
Priyanka Taneja
  • 515
  • 1
  • 5
  • 21

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
  • 2,073
  • 2
  • 20
  • 39