-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Spring Boot 2.2.0 #71
Comments
I decided that I am going to release this as a |
Currently blocked on DATAREST-1397. /cc @arya6000 |
Hi @paulcwarren , However, to get round an issue in spring-data-rest, I'm looking to upgrade to Spring Boot 2.2 M1. Do you have an idea of when support might be added? Thanks. David. |
Hi @Davidm76, Firstly, thanks for using Spring Content. Unfortunately, Spring Boot 2.2.M1 has the aforementioned but above (DATAREST-1397). That said, 2.2 M5 depends on Spring Data Moore RC2 that, I believe, will have the bug fix for DATAREST-1397. So, I think we would be in a position to release our 1.0.0.M1 based on 2.2M5 and Moore RC2. This will presumably have the bug fix you need to. Is there a reason you wanted to pin to 2.2.M1? Or is 2.2.M5 fine too? |
Thanks for getting back to me @paulcwarren . Yes, 2.2.M5 would work. M1 was I typo! |
OK. Sounds good. So, I've got an upcoming 0.10.0 release. Then I'll merge the 0.10.0 changes across and do a 1.0.0.M1 release for you. Give me a couple of weeks to tidy some things up. |
Thanks @paulcwarren , it's very much appreciated. |
Spring Content 1.0.0.M1 is now available supporting Spring Boot 2.2. Please let me know if you have any problems consuming it, or if this doesn't address your needs as you expected. |
Thanks @paulcwarren |
Hi @paulcwarren , I've upgraded my POM as follows: <parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.0.M5</version>
</parent> <dependency>
<groupId>com.github.paulcwarren</groupId>
<artifactId>spring-content-fs-boot-starter</artifactId>
<version>1.0.0.M1</version>
</dependency>
<dependency>
<groupId>com.github.paulcwarren</groupId>
<artifactId>spring-content-rest-boot-starter</artifactId>
<version>1.0.0.M1</version>
</dependency>
<dependency>
<groupId>com.github.paulcwarren</groupId>
<artifactId>spring-content-jpa</artifactId>
<version>1.0.0.M1</version>
</dependency> I no longer get the ClassNotFoundException, which is great, however, my ContentStore bean does not seems to have been created. I have the following ContentStore: @StoreRestResource
public interface ScaleableVectorContentStore extends ContentStore<SymbolVector, String> {
} However, the allocation fails to start:
It looks like the interface hasn't been inflated. Any ideas? Thanks. David. |
We recently added strict resolution mode to allow multiple Store modules (of different types) to be used at once. So the one thing I can spot from your snippets above is that you are including spring-content-fs-boot-starter and spring-content-jpa; i.e. you have two storage modules on your classpath. SC will, therefore, enter strict resolution mode. But at the same time you have defined So I believe SC will be unable to determine which storage module that you wish to use, and rather than make an artibtrary choice that might be wrong, instead won't use any. If you don't need both then you could try removing one of the storage modules from the classpath, or make your Store extend either Let me know if this works. |
Hi @paulcwarren I tried removing spring-content-fs-boot-starter. If I do that the application fails to start with the following exception:
The strange thing is, when I look at the dependencies of spring-content-fs-boot-starter, |I can't see JsonPath included. If I add JsonPath into my POM, I still get the same issue. Not sure what's going on. Thanks. David. |
Hi David, I wonder if your jsonpath jar library got corrupted during download? From a dependency perspective it looks like it is there but when the classloader actually tries to load classes from it, it can't? I have seen this plenty over the years. As for If that isnt it then can you run |
Hi @paulcwarren , Thanks so much for you're help. David. |
Hello @paulcwarren , Please help me.It would be a grateful.TIA. |
@modikanisha I think what he did was changing <dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<scope>test</scope>
</dependency> to <dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
</dependency> At least that worked for me. |
@arya6000 raised this issue against spring-content-examples.
We should prep for and add support Spring Boot 2.2.0. However, 2.2.0 depends on Spring Moore which depends on
spring-hateoas
1.0.0 with a significantly updated API that is backward incompatible with older versions.The text was updated successfully, but these errors were encountered: