On Oct 13, 2010, at 8:34 AM, Vidar Ramdal wrote:
On Wed, Oct 13, 2010 at 1:33 PM, Craig Ganoe <[email protected]> wrote:

Is there an "easy" way for me to make modifications to the embedded
Jackrabbit repository that gets bundled with the standalone Sling?

I've built Sling from the latest code, and I've built a modified version of Jackrabbit 2.1.1 (which is what it looked like Sling uses) separately. I
don't see where Sling gets its embedded Jackrabbit though.

All I'm trying to do is get a version of Jackrabbit into Sling where the ObservationManager's Event.getIdentifer() method is functional via RMI.
Jackrabbit has currently left these unimplemented for RMI.

Thanks for any input on how to do this.

I guess you will have to build your own version of
jackrabbit-jcr-rmi.jar (if that's what you need to get the method
exposed via RMI).

Already did that, and have the jar. It also looks like what I built was also installed in some kind of repository off my home directory (hoping this is useful later): .m2/repository/org/apache/jackrabbit/jackrabbit-jcr-rmi/2.1.1/ jackrabbit-jcr-rmi-2.1.1.jar

Then you would have to roll your own version of the bundle Sling
Jackrabbit Embedded Repository
(org.apache.sling.jcr.jackrabbit.server), where the only modification
you need is to include your jackrabbi-jcr-rmi.jar instead of the
standard one. A simple change in the pom.xml should be enough.

Right, but I know nothing about Maven and pom files, and it looks like there is far more than one pom.xml file in the Sling source tree. Seems like there are at least two references to "jackrabbit-jcr-rmi" in pom.xml files:

bundles/jcr/jackrabbit-server/pom.xml
bundles/jcr/base/pom.xml

Both of which have:
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-jcr-rmi</artifactId>
            <version>2.0.0</version>
            <scope>provided</scope>
        </dependency>

If the change to the pom.xml file is "simple", care to explain that part? Apparently I got the hard part.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to