Embed a jar in a module

  Written by The Jahia Team
 
Sysadmins
   Estimated reading time:
7.1.1.0

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.

Related links