I think it is not safe to use jcr 2.0 with old 1.6 jackrabbit version...

I has the same doubt. I tried and seemed to work correctly, but I didn't trusted it fully, at least not until Magnolia declares a full support. I'm usually the first rushing to update all the libraries and I know that 1.6 <-> 2.0 are compatible because of a huge use of reflections, but for this time I think I'll wait. Just because importing criteria will get only jackrabbit 2 core but all the oter jackrabbit lib will still be 1.6... I solved using this maven import and everything seems to work fine (disregard the part about testng if you are using an older version):

<dependency>
        <groupId>net.sourceforge.openutils</groupId>
        <artifactId>openutils-mgnlmedia</artifactId>
        <version>4.3.0</version>
  <exclusions>
    <exclusion>
<!-- Qualifier changed in testng 5.12, so the old version should be explicitly excluded. -->
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
    </exclusion>
    <exclusion>
<!-- Just to avoid importing jackrabbit 2 until is officially supported -->
      <groupId>net.sourceforge.openutils</groupId>
      <artifactId>openutils-mgnlcriteria</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
        <!-- Forced to avoid importing jackrabbit 2 with the exclusion -->
  <groupId>net.sourceforge.openutils</groupId>
  <artifactId>openutils-mgnlcriteria</artifactId>
  <version>3.0.2</version>
  <exclusions>
    <exclusion>
      <groupId>org.apache.jackrabbit</groupId>
      <artifactId>jackrabbit-core</artifactId>
    </exclusion>
  </exclusions>
</dependency>

Regards, Danilo.


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to