Using a github forked extension

Hello guys,
I’m new to xwiki and happy to see this active forum.

I’ve managed to make my xwiki work well with LDAP (auth + groups).
I’d like to do the same with SSO CAS. I’ve managed to auth with my CAS server, thanks to the official plugin :

In order to make my groups work, I need to use the CAS v.3 protocol. This feature is not implemented in the official plugin (which is 8 yo) but it is in a github fork :

My question is : how can I install the forked version in my xwiki docker installation ? I have compiled the .jar file but I don’t know what to do with it. I found the official jar file in the extension/repository/ folder, but I doubt that I just have to replace it there.

Can you help me with that please ?
Thanks a lot !


Actually this should work just fine (provided you keep the same name and restart) but it’s not very clean from Extension Manager point of view since there would not be any clue that you are using a patched version and not what Extension Manager is indicating.

An alternative is to uninstall the extension and use the old style way to put a JAR in XWiki which is along with the other ones in /WEB-INF/lib (and restart).

I saw this “tip” several time of putting the jar file in the /WEB-INF/lib folder.

I’m using the docker method (using docker-compose described here : which only exports the /usr/local/xwiki. I didn’t see this /WEB-INF/lib folder there, I’m I wrong ?

You can use a docker volume to map a single file into an arbitrary folder inside the docker container. I think the path should be /usr/local/tomcat/webapps/ROOT/WEB-INF/lib.

Neither mapping the file in the /usr/local/tomcat/webapps/ROOT/WEB-INF/lib directory nor replacing it in the extension/repository/ folder worked.

I’ll have to use LDAP Authenticator instead.
Thanks for your time.