Clojure Leiningen offline install

I work in a very restrictive environment, I cannot execute curl or wget scripts such as lein.sh/.bat, and cannot I "git" the code. I have leiningen-xxx-standalone.jar which does not constitute a complete leiningen setup. How can I set up full leiningen, offline? Is there something like a “full” download? If not, what are the main parts? What is the required file system layout?

+6
source share
2 answers

The "correct" approach for working with maven in a secure corporate setting was to install the repo mirror, fill it with all the banks you need, and then add it to your ~ / .m2 / settings.xml file to mirror everything.

<settings> <mirrors> <mirror> <id>archiva.default</id> <url>http://my.mirror.com:8080/archiva/repository/internal</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors> </settings> 

This is a lot of work, although it can pay off in the long run, because you can use the internal mirror for subsequent projects (and speed up the download)

copying the working directory .m2 is also a respectable hack

+6
source

Copying the .m2 directory and lein sh script should do the trick.

+2
source

Source: https://habr.com/ru/post/909093/


All Articles