简体   繁体   中英

immutable local maven repository

When using lein install or eg boot pom jar install , a Clojure project is packed inside a jar and installed to the local maven repository. Which is stored as a folder structure of several jars for instance under ~/.m2

These installations are mutable, meaning a project of a specific version (eg 0.1.0 ) can be overridden by calling the same command after something has changed inside the project but without the version being changed.

When pushing to a public repository such as clojars, this is not possible. There I guess only *-SNAPSHOT versions one can override existing pushs.

Wouldn't it be desirable to have this immutability already in a local repository? Are there ways to archive this?

I run a copy of Nexus an an AWS instance for this purpose, though it woule make sense to run it on your own computer. Most of the benefits (except protection against the loss of this computer) with lower latency. The price is right as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM