On Tue, 2009-07-14 at 06:58 -0700, AlamedaMike wrote: 
> Stefan, Meikel,
> 
> Thanks much for this. It looks very interesting.
> 
> Forgive a newb question but I just downloaded Maven for the first time
> 30 minutes ago. I read the "Maven in 5 minutes" doc, and executed:
> 
> mvn archetype:create -DgroupId=org.clojure  -DartifactId=clojure
> 
> followed by:
> 
> mvn package
> 
> All the tests passed. I then ran:
> 
> java -cp clojure-1.0-SNAPSHOT.jar  org.clojure.App
> 
> and got "Hello World" as the output.
> 
> My expectation is that one of the first two commands would go to a
> central repository and download a POM file based on the id parameter,
> which would in turn supply the data necessary to download the other
> dependencies necessary to build a complete set of clojure files.
> However, I'm just getting the 2,092 byte clojure jar file. What am I
> missing?
> 
> Thanks in advance for any help.

As far as I'm aware, there is no archetype for Clojure projects just
yet. I tried making one, but my maven-fu is not quite up to snuff yet.

So, unless/until someone creates one and lets us know about it, you have
to set up the initial layout of the project manually.

What clojure being in the repository means is we can now specify a
dependency on clojure 1.0 and have maven automatically download it for
us. You will still have to install:install-file on clojure-contrib
yourself or find a repository that is hosting a version for you, but you
will only have to do that once per machine and that will be shared
amongst your projects.

I believe what you were doing was creating a new stub java project which
was overwriting (in your local repository) the clojure dependency. You
will want to replace the groupId and artifactId with your own namespace
and project name respectively, and then insert into the dependencies
section this:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>clojure</artifactId>
  <version>1.0.0</version>
</dependency>

You also might want to look into the clojure-maven-plugin[1] if you are
planning on doing AOT compilation of your clojure projects.

[1]: git://github.com/talios/clojure-maven-plugin.git

Daniel E. Renfer




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to