Hi,
You need to install the external dependencies as a aem bundle .
Various ways to do that :
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-use-external-jars-in-aem-environment-osgi/m-p/305806#:~:text=You%20can%20not%20use%20jar,into%20AEM%20through%20felix%20co...