I have a problem with Idea, it seems that Idea keeps loading jars that I removed from my spring application
m
mbratek
02/01/2021, 10:42 AM
Try to invalidate caches. Intellij Idea -> File -> Invalidate Caches / Restart -> Invalidate and Restart
b
bjonnh
02/01/2021, 4:43 PM
I did that, but to no avail, rebuilt gradle, removed build dirs neither. The only thing that solved it was to add in my application profile:
Copy code
management.health.solr.enabled: false
bjonnh
02/01/2021, 4:44 PM
But I still don't understand why it wants to look at the health of solr, when I do in the project a
Copy code
grep -Rri solr .
I have 0 results
m
mbratek
02/01/2021, 7:12 PM
You can try to use
gradle dependencies | grep solr
maybe one of the dependencies uses solr
b
bjonnh
02/01/2021, 8:39 PM
I have a dependency that import solrj transitively (rdf4j) but that has nothing to do with spring. so maybe spring still sees solr4j on the classpath and decides to do that? That would be a weird behavior no?
bjonnh
02/01/2021, 8:42 PM
I'm excluding it see if it is the responsible one.
bjonnh
02/01/2021, 8:44 PM
so it looks like org.springframework.boot:spring-boot-dependencies is importing solr4j
bjonnh
02/01/2021, 8:45 PM
what I don't understand is why does it decide I would have solr?