Laurent PETIT wrote:
> I have not followed maven2 concerning this "qualifier" thing.

Right. The first (small) part of my post, which referred to yours, was
strictly about versioning, and specifically about the end of the
version string, related to snapshots.

Then I addressed the classifier as another subject, which is more
related to build management.

> Would it be corrrect to say that, to further extend you examples, one
> the qualifiers could be "slim", since clojure ant already has such a
> target.
>
> Or would a "slim" jar of clojure have to had another artifactId ? (I
> don't think so, but I ask to be certain of that)

I believe the correct approach would indeed have "slim" as a
classifier, because "slim" is an hybrid of the default classifier
(.java files as bytecode only) and of the source classifier (.clj
files). That fits in the original definition of classifier: "The
classifier allows to distinguish artifacts that were built from the
same POM but differ in their content."

Thus, due to clojure's way of bundling AOT-compiled bytecode and/or
clojure data structures as code, I believe it makes sense to introduce
a new conventional classifier which is alien to purely java-based
projects but makes sense to clojure projects.

Following this, a conventional maven packaging of clojure would yield
the following:

  clojure-1.0.0-<snapshot>.jar
  clojure-1.0.0-<snapshot>-slim.jar
  clojure-1.0.0-<snapshot>-javadoc.jar
  clojure-1.0.0-<snapshot>-sources.jar

Now, let's suppose we really don't care about the javadoc-only
packaging. Upon official release:

  clojure-1.0.0.jar
  clojure-1.0.0-slim.jar
  clojure-1.0.0-sources.jar

  clojure-1.0.1-<snapshot>.jar
  clojure-1.0.1-<snapshot>-slim.jar
  clojure-1.0.1-<snapshot>-sources.jar

  clojure-1.1.0-<snapshot>.jar
  clojure-1.1.0-<snapshot>-slim.jar
  clojure-1.1.0-<snapshot>-sources.jar

Howard has already done this for the snapshot of 1.0.0, but he
versioned it 1.0:
http://tapestry.formos.com/maven-snapshot-repository/org/clojure/clojure-lang/1.0-SNAPSHOT/
--~--~---------~--~----~------------~-------~--~----~
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
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