Hacker News new | ask | show | jobs
by beamso 4891 days ago
> Wanna quickly add a private .jar file / private repo?

I quickly add .jar files by creating the required structure under ~/.m2/repository (and potentially create a matching .pom file) and then update the project's POM to reference it and work from there. mvn will complain about a missing pom file.

It's also pretty easy to deploy a private .jar file to a Nexus repository (should you be running one). I've even seen people running httpd and copying the appropriate .jars and .poms in (for those who wanted to share with others).

> I much prefer to have my jars managed by myself and commit them directly in the DVCS.

I personally consider that to be an anti-pattern, especially if you can't discover what versions of JARs have been committed to version control by some form of metadata.

> Another area where Leiningen/Maven really do not shine is when you don't have Internet access (like, you know, in companies which have separate networks, including ones non-connected to the big bag Internet).

You can run both mvn and lein builds offline. However, you may have fun downloading/placing the appropriate project dependencies.