[midPoint] adding external jars

Kamil Jires kamil.jires at evolveum.com
Thu Aug 22 13:37:37 CEST 2024


Hi Steve,

  as you are not providing the use case I can only guess the goal you 
are trying to reach. Let me answer in general level.

     1) midPoint home directory (preferred way)

In the midpoint home directory there is lib subdirectory. In case you 
place the jar file into this location it will be loaded with the next 
midPoint start. It will work out of the box and nothing else have to be 
done.

The default location (could be changed by the configuration) is 
/opt/midpoint/var(/lib) .

This approach is stable also over the updates and the jar file is places 
independently to the midPoint jar file.

      2) overlay (not recommended in this case)

Even it is not recommended technically you can add the file into the jar 
file. It should also work but this level of change may several impact. 
The most visible are:

  - once you want to update the midPoint version you have to update all 
the future file to have it available (your current state)

  - under about, there is information announcing the official build 
(checking signature of the file). After the update there will be shown 
"Unofficial build" - 
https://docs.evolveum.com/midpoint/reference/admin-gui/midpoint-jar-signature-status/

It can be done manually. There is also available overlay project ( 
https://docs.evolveum.com/midpoint/features/current/overlay-project/ ) 
which may help you maintaining the overlay to the future.



If it si possible start with the option of home directory.

I hope this information will help you.

Best Regards,

Kamil

On 8/15/24 16:40, Ashwill, Steven L via midPoint wrote:
> Hello,
> In the midpoint-4.8.3 build, how do I add an external jar file?
> Currently, in the 4.4.8 build, we just add it to the WEB-INF/lib folder in the war file and midpoint can access the methods in the jar.  What steps are needed to add a folder of additional jars. It appears that PropertiesLauncher might be the solution, but I want to check to see if it is supported by this build? Is it as simple as LOADER_PATH as an Environment variable and setting it to the path of the external jars folder?
>
> Thanks,
> Steve
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint


More information about the midPoint mailing list