You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add clojure command and execution flag for each alias
- move :repl/clerk to REPL section
- move :lib/integrant-repl & :lib/component-repl to development environment section
Copy file name to clipboardExpand all lines: README.md
+28-11Lines changed: 28 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -657,23 +657,34 @@ Take care to get the timezone notation correct.
657
657
658
658
## Library Hosting Services
659
659
660
-
Repositories that host libraries for Clojure.
660
+
Clojure libraries are packaged as Java Archive (JAR) files and distributed by Maven style repositories. A Clojure project configuration defines library dependencies that are satisfied by downloading jar files from the collective repository sources.
661
661
662
-
`central` and `clojars` are the man repositories for Clojure development are consulted in order.
662
+
`central` and `clojars` are defined in the Clojure CLI installation configuration and are the main repositories for Clojure development.
663
663
664
-
`central` and `clojars` repos can be removed from consideration by setting their configuration hash-map to `nil` in `~/.clojure/deps.edn`. For example, `{:mvn/repos {"central" nil}}`.
664
+
*`central` - Maven Central, the canonical repository for JVM libraries, including Clojure releases
665
+
*`clojars` - [clojars.org](https://repo.clojars.org/), the canonical repositories for Clojure community libraries fronted by a contend delivery network service
The order of additional repositories consulted is not guaranteed, so may cause unpredictable side effects in the project build especially if `RELEASE` or `LATEST` tags are used rather than a numeric library version.
673
+
`central` and `clojars` repos can be removed by setting their configuration to `nil`in the user or project `deps.edn` configuration.
667
674
668
-
Maven supports [explicit mirror definition](https://maven.apache.org/guides/mini/guide-mirror-settings.html) in `~/.m2/settings.xml` and Clojure CLI supports this configuration. Adding Maven Central or a mirror to `~/.m2/settings.xml` negates the need for its entry in deps.edn configuration.
675
+
```clojure
676
+
`:mvn/repos
677
+
{"central"nil
678
+
"clojars"nil}
679
+
```
669
680
670
-
### Recommended repositories
681
+
Maven supports [explicit mirror definition](https://maven.apache.org/guides/mini/guide-mirror-settings.html) in `~/.m2/settings.xml` and Clojure CLI supports this configuration. Adding Maven Central or a mirror to `~/.m2/settings.xml` negates the need for its entry in deps.edn configuration.
671
682
672
-
*`central` - Maven Central, the canonical repository for JVM libraries, including Clojure releases
673
-
*`clojars` - [clojars.org](https://repo.clojars.org/), the canonical repositories for Clojure community libraries fronted by a contend delivery network service
674
683
675
684
### Optional repositories
676
685
686
+
The order of additional repositories consulted is not guaranteed, so may cause unpredictable side effects in the project build especially if `RELEASE` or `LATEST` tags are used rather than a specifice numerical version.
687
+
677
688
*`sonatype` - [snapshots of Clojure development releases](https://oss.sonatype.org/), useful for testing against before new stable releases.
678
689
*`business-area` - example of adding a local Artifactory server for your team or business area.
679
690
*`google-maven-central` - [Maven Central mirror hosted on Google Cloud Storage](https://storage-download.googleapis.com/maven-central/index.html) - Americas, Asia, Europe
@@ -706,7 +717,7 @@ Example of local Artifactory repository configuration
706
717
"clojars" {:url"https://repo.clojars.org/"}}
707
718
```
708
719
709
-
### Asian Region Mirrors
720
+
### Asia Region Mirrors
710
721
711
722
```clojure
712
723
:mvn/repos
@@ -721,10 +732,16 @@ Example of local Artifactory repository configuration
721
732
722
733
## Maven local repository
723
734
724
-
Define a local Maven repository. Useful if you wish to specify an alternative to the default `~/.m2/` directory.
735
+
Specify a local repository for maven, as an alternative to the default location: `$HOME/.m2/repository`
736
+
737
+
FreeDesktop.org `XDG_CACHE_HOME` is the recommended location for an alternative Maven local repository.
0 commit comments