Dependency Problem with LDAP Authenticator Extension and XWiki 17.10.3

Hi, I’m currently running XWiki 16.10.15 with LDAP Authentication extension 9.15.7.

I want to upgrade XWiki to 17.10.3 and LDAP Authentication extension to the latest 9.16.1.

When building the XIP package (we’re running XWiki in an air-gapped environment) I get a dependency error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (enforce-jdom2) on project package:
[ERROR] Rule 0: org.apache.maven.enforcer.rules.dependency.BannedDependencies failed with message:
[ERROR] Use org.jdom:jdom2 instead
[ERROR] groupid:package:xip:17.10.3
[ERROR]    org.xwiki.contrib.ldap:ldap-authenticator:jar:9.16.1
[ERROR]       org.xwiki.platform:xwiki-platform-oldcore:jar:8.4
[ERROR]          org.xwiki.commons:xwiki-commons-xml:jar:8.4
[ERROR]             org.jdom:jdom:jar:1.1.3 <--- banned via the exclude/include list

Is the extension compatible with XWiki 17.10? Or am I doing anything wrong?

For the sake of completeness: We’re running XWiki as docker container (postgres-tomcat).

Thanks in advance, Jim

It seems, jdom2 has been introduced with XWiki 17.0.0.

I think it’s mainly that Maven does not like too much the mix of XWiki 8.4 dependency with the constraints of XWiki 17.10.3.

The way the extension dependencies are resolved in XWiki will be very different during install (it will see that a
xwiki-platform-oldcore 8.4+ is already there and won’t look at transitive dependencies), but Maven is missing some information.

The simplest would probably be to exclude org.xwiki.platform:xwiki-platform-oldcore from the ldap-authenticator dependency you have in the pom.

Maven seems happy now, thank you!