JohnSnowLabs / spark-nlp

State of the Art Natural Language Processing
https://sparknlp.org/
Apache License 2.0
3.76k stars 703 forks source link

allow configurable M2Resolvers #14252

Open jianlins opened 1 month ago

jianlins commented 1 month ago

Description

In air-gap environment, the default maven repos are not accessible.

Preferred Solution

Can you set the M2Resolvers to read default ~/.m2/settings.xml to get the repo settings? or parameterize the repo URL?

Additional Context

running some configurations fails when it trying to reach out to maven repo.

jianlins commented 1 month ago

sorry, miss click the assignment. not sure how to correct it.

maziyarpanahi commented 1 month ago

Hi @jianlins

Isn't this possible to proxy the Maven from outside to any location you need without changing anything in the library? We have many users using it in air-gap env.

Also, it would be best if you can use our official fat Jars that come with everything to avoid pulling any dependencies from anywhere. (it's the official recommendation for 100% offline support) - we list these jars in each release notes: https://github.com/JohnSnowLabs/spark-nlp/releases/tag/5.3.3