The fact that Maven uses http bit me today.
I was working offline in a coffee shop,
Maven tried to download something dynamically
and failed. End of my development work.
A git-based version of the system would be much
more useful (I know, I'm living in a backwater
country without proper internet but...).
Disk space is cheap. I have a 2T external drive.
Bandwith is not cheap and my time, at least to me,
is very expensive. I'd like to just do a git clone
of Clojure and be able to work anywhere.
Mavens use of http takes me all the way back to a
CVS/SVN situation where there are certain operations
I cannot do unless I'm connected. It's the late 90s
and this shouldn't be a blocking issue anymore.
Can I git-clone Maven so it will reach for a local repo?
Can I git-clone Clojure with a standalone build system?
Tim Daly
B Smith-Mannschott wrote:
On Sun, Aug 22, 2010 at 09:52, B Smith-Mannschott <[email protected]> wrote:
Maven uses http, so one can download the various modules of clojure
contrib via a web browser. Snapshot builds are here:
http://build.clojure.org/snapshots/org/clojure/contrib/
i.e.
http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION
The old monolithic clojure-contrib.jar is now
org.clojure.contrib/complete.jar you can find snapshot builds of it
here:
http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0-SNAPSHOT/
Important detail: the one you want is the jar-with-dependencies variant.
Note: this jar contains not only all modules of clojure-contrib, but
also a complete copy of clojure 1.2.0.
I don't know if that's the intention. I could write a patch that
generates a 'complete' variant without clojure 1.2.0, if anyone's
interested.
hth,
Ben
On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber <[email protected]> wrote:
A couple of questions:
1) Does use of clojure-contrib now require maven or leinigen as a
prerequisite or is there a place to go grab the jar files?
2) From my read of this, there is no longer a clojure-contrib.jar,
just a meta dependency that causes maven to grab all the modules. Is
that correct?
Tom
On Aug 20, 7:22 am, Stuart Sierra <[email protected]> wrote:
Hello, all,
As planned for some time, clojure-contrib has now been split into many
submodules on the "master" branch.
*** For users of clojure-contrib 1.2.0: nothing changes.
*** For users of clojure-contrib snapshots:
New builds of the master branch on github will be available as 1.3.0-
SNAPSHOT versions. Each major contrib library has its own module with
the groupId "org.clojure.contrib" and an artifactId which is the name
of the library.
For example, to use the clojure.contrib.macro-utils namespace in your
projects, add a dependency on group "org.clojure.contrib", artifact
"macro-utils", version "1.3.0-SNAPSHOT".
In Leiningen syntax, this looks like:
:dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0-
SNAPSHOT"] ...]
In Maven syntax, this looks like:
<dependencies>
...
<dependency>
<groupId>org.clojure.contrib</groupId>
<artifactId>macro-utils</artifactId>
<version>1.3.0-SNAPSHOT</version>
</dependency>
...
</dependencies>
If you want to use ALL contrib libraries, add a dependency on group
"org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT".
This meta-library depends on all other contrib libraries.
*** For clojure-contrib developers:
Each library has its own directory under the "modules" directory at
the top level of clojure-contrib. Each module directory contains a
pom.xml file specifying the name, version number, and dependencies of
that library.
Every module pom.xml declares a "parent" located in the modules/parent
directory. The parent pom.xml file defines configuration settings
common to all clojure-contrib libraries. Currently the parent pom.xml
declares a dependency on Clojure 1.2.0 and sets up clojure-maven-
plugin to compile and test Clojure sources.
Individual libraries may override the parent configuration in their
own pom.xml files.
Building all of clojure-contrib (by running "mvn install" at the top
level) can take over 10 minutes. Fortunately, you do not need to
build all the modules most of the time. To build just one library, cd
to its directory under "modules" and run "mvn install" (or "mvn test"
to test). You will need to have already installed, at a minimum, the
parent module and any modules your library depends on.
*** For everyone:
There will doubtless be some breakage and difficulties during this
transition period. Please bear with us. Post your questions to the
list, and we will try to answer them as soon as possible.
Thanks,
Stuart Sierra
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en