Page 1 of 1

Bouncy Castle built-in libs

PostPosted:Tue May 11, 2021 7:17 am
by danjo
Hi!
I'm customizing the openkm environment.
I need to use the bouncy castle FIPS libs, so i have added the dependency in the .pom file.

When i try to invoke the library the console gives me an error, i noticed that in the:
/home/openkm/.m2/repository/..
folder there are already various versions of the Bouncy Castle library (non-FIPS).

I tried to remove manually them, but at compile time they are automatically downloaded again.

No references to there libraries are present in the .pom file.
This console error is caused by the collision of the packages as the both start with:
org.bouncycasyle.[and_more]

Is there a way to permanently delete them?
Thank you all :roll:

Re: Bouncy Castle built-in libs

PostPosted:Fri May 14, 2021 5:52 pm
by jllort
If you open the pom.xml in your IDE should have a dependency analyzer. For example in Intellij got something like the next screenshot:
Selección_077.png
Selección_077.png (59.36 KiB) Viewed 6231 times
Finally depending the enhancement wish to do, maybe it is better implement external module with webservices API and user from OpenKM as a remote service. Usually this is a good aproach. If explan what are trying to do maybe I can suggest serveral options ( I do not need a large description, only a general idea about what kind of problem are trying to solve and what got in your mind ).