jar module Developer Jahia 7.3 Jahia 8 Legacy

Embeded JAR causes a conflict

Question

Customer embedded a jar in jahia module and run into a problem.

Cause

The embedded jar file is also a module and so two versions of the jar file are available.

Solution

Use in pom.xml the <scope>provided</scope>

In that case, the jar will not embed and the installed module jar is used.