Garbage collector for Sling 7

2017-05-02 Thread Andrei Zafiu
Hello all, I am trying to implement a Garbage Collector as a Sling Bundle to cleanup the Jackrabbit repository. I am working with the Sling 7 war version, deployed in a jetty 8.1.15 instance. I have tried to develop the bundle using the information from this url: 

RE: sling mocks "Creating resource resolver failed"

2017-05-02 Thread Stefan Seifert
using a newer Sling API than that sling-mocks was compiled against is usually no problem, because the API is backwards-compatible. the problems start if other dependencies esp. org.apache.sling.resourceresolver or org.apache.sling.jcr.resource are updated withouth the other. this is a sort of

Re: sling mocks "Creating resource resolver failed"

2017-05-02 Thread Santiago Garcia Pimentel
Hi again, Coming back a bit on this. It seems the the point is that the version of the sling api and the resourceResolver you use need to match, and this needs to be done explicitly in your pom. This is more clear in the sling-mock source code. It has a profiles that uses different versions