Closed Nowheresly closed 3 weeks ago
For the sake of completeness, I have added this dependency in my pom.xml:
<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>4.9</version>
</dependency>
By forcing the version of jsqlparser, the jpa error is now gone. Yet I'm not sure if the jdbc part will work with no regressions...
Jsqlparser is a test-only dependency, the fix will come via spring-projects/spring-data-relational#1796. Until then, either exclude the JDBC dependency or pin the dependency version, please.
Hi,
I have a project that uses both spring-data-jpa and spring-data-jdbc with spring boot version 3.3.0
Here is a excerpt of my maven dependency tree:
When starting my project, I get this error:
Indeed, the class net/sf/jsqlparser/statement/select/Values is only available in version 4.7+ of jsqlparser lib.
Now it seems spring-data-jdbc requires jsqlparser 4.6 while spring-data-jpa requires jsqlparser 4.9 as seen here
https://mvnrepository.com/artifact/org.springframework.data/spring-data-relational/3.3.0
https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa/3.3.0
Any idea about how to fix this issue ?