Hacker News new | ask | show | jobs
by technomancy 5301 days ago
> You have the source, but the Maven model used by the whole Java ecosystem for distribution/management of packages doesn't work like that.

Oh, I don't know about that. Clojure does this; shipping source is default, and shipping bytecode is only done in cases of certain Java interop forms.

But Maven has a notion of "classifiers" that seem to be a good fit for this. I've seen them used to specify things like "this is the JDK 1.4-compatible version", so I wonder why Scala library authors haven't used them to publish the same artifact compiled against multiple versions of Scala.

1 comments

Does clojure use maven for shipping source around?
Yes, the source is just stored in jar files, which can contain any kind of files.
'Jar' files are actually zip files with a '.jar' extension. On my Windows machine I have .jar associated with a zip application, very handy to quickly inspect its contents.