On Thu, Nov 15, 2012 at 8:16 PM, Jeremie BOUSQUET < [email protected]> wrote:
Hello,
I'm testing installation of an extension with extension manager / extension repository, on XE 4.3-milestone-2: - deploy my extension (xar + deps) from maven to a local nexus - import this extension into the extension repo in my xwiki - try to install it with EM
I get a conflict: Dependency [javax.jcr:jcr-2.0] is not compatible with core extension [javax.jcr:jcr-1.0]
I'm trying to understand from where this come from actually. I don't have it when I build XE war myself but I can find it in the wars on http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/4... .
This dependency is a transitive dependency (runtime) of a mstor library needed by my app. Currently, it is used in xwiki in version 1.0.
I first tried to add an <exclusion> block for it in my pom.xml, redeployed, reimported, reinstalled, with same result.
Yes EM does not support exclusions. It's hard to handle in such an environment where you potentially have several extension depending on the same thing.
I then added jcr 1.0 in a dependencyManagement section in order to override version 2.0 brought by mstor, but again with same result.
Same thing, right now when EM is looking at your transitive dependencies it lost the dependencyManagement from your pom.xml already.
BTW, additionally, the folder targeted by xwiki.data.dir remains empty ... Seems a bit strange.
Maybe it's set in your xwiki.properties files.
How can I solve this issue ?
Not an easy one. I can think of several things: * upgrade the jcr version in XE (I'm trying to look at what this means exactly) * have a custom version of your dependency with a different version of jcr deployed somewhere like http://maven.xwiki.org/externals/ (not very nice) * add support for a kind of exclusion/dependency overrides in EM You sure your dependency would fully work with jcr-1.0 ? What is this dependency by the way ?
Thanks, Jeremie _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne