Thank you very much, that was exactly what I needed to do. I've
managed to publish the java library on clojars. Now I need to tell the
original author what I'm doing :)

On Apr 7, 3:46 pm, Mark Rathwell <mark.rathw...@gmail.com> wrote:
> I'm not aware of any clojars policies relating to this, so I'm not sure if
> they only want clojure artifacts in their repository, but I would think it
> would not be an issue.
>
> You will first need to create a minimal pom.xml for the library jar file,
> see 'Minimal POM' section 
> athttp://maven.apache.org/guides/introduction/introduction-to-the-pom.html
>
> <http://maven.apache.org/guides/introduction/introduction-to-the-pom.html>Then,
> see the clojars getting started for getting setup, and follow the
> instruction at the end for manually uploading a jar, 
> athttps://github.com/ato/clojars-web/wiki/tutorial
>
>  - Mark
>
>
>
>
>
>
>
> On Thu, Apr 7, 2011 at 10:27 AM, j1n3l0 <nelo.ony...@gmail.com> wrote:
> > Thank you both for your input.
>
> > Now assuming I am prepared to publish the java component to clojars
> > myself (which I am), how do I go about publishing said java library
> > with an ant build file to clojars? My understanding of clojars was
> > that it was for clojure libraries?
>
> > Thanks.
>
> > On Apr 7, 3:19 pm, Mark Rathwell <mark.rathw...@gmail.com> wrote:
> > > Wow, I really shouldn't be reading this early in the morning.  Just
> > realized
> > > you want to publish to clojars.org.  In that case, yes, you do need to
> > alert
> > > users as to where they can download the additional dependencies that are
> > not
> > > in common maven repositories.  Or, as Armando suggested, petition the
> > > library's developer to get it into a common repo or do it yourself.
>
> > > Sorry for any confusion.
>
> > >  - Mark
>
> > > On Thu, Apr 7, 2011 at 9:56 AM, Mark Rathwell <mark.rathw...@gmail.com
> > >wrote:
>
> > > > Oops, just reread your question, looks like you may be more interested
> > in
> > > > deployment.  For deployment, try 'lein uberjar' to bundle all
> > dependencies
> > > > into one distributable jar file.
>
> > > > Hopefully answered the right question this time ;)
>
> > > >  - Mark
>
> > > > On Thu, Apr 7, 2011 at 9:54 AM, Mark Rathwell <mark.rathw...@gmail.com
> > >wrote:
>
> > > >> The easiest way would be to install the library to you local maven
> > > >> repository with the command below (assuming you have maven installed.
> >  That
> > > >> way, you can add the dependency to all of your projects on your local
> > box.
> > > >>  If you do not want to use maven, you make sure the library is on your
> > > >> classpath when running the application.
>
> > > >> mvn install:install-file
> > > >>   -Dfile=<path-to-file>
> > > >>   -DgroupId=<group-id>
> > > >>   -DartifactId=<artifact-id>
> > > >>   -Dversion=<version>
> > > >>   -Dpackaging=<packaging>
> > > >>   -DgeneratePom=true
>
> > > >> Where: <path-to-file>  the path to the file to load
> > > >>        <group-id>      the group that the file should be registered
> > under
> > > >>        <artifact-id>   the artifact name for the file
> > > >>        <version>       the version of the file
> > > >>        <packaging>     the packaging of the file e.g. jar
>
> > > >>  - Mark
>
> > > >> On Thu, Apr 7, 2011 at 9:49 AM, j1n3l0 <nelo.ony...@gmail.com> wrote:
>
> > > >>> Hi,
>
> > > >>> I've written a little clojure library that depends on a java library
> > > >>> for functionality. This java library is only available on
> > > >>> sourceforge.net. I have been using leiningen to manage my clojure
> > > >>> projects and I would like to add it as a dependency in my project.clj
> > > >>> file so I can publish my library to clojars.
>
> > > >>> Is there a standard solution this sort of dependency requirement?
> > What
> > > >>> I did for development was to:
>
> > > >>> * download the java library
> > > >>> * build it with ant
> > > >>> * copy the jar to my lib/ directory
> > > >>> * hack
>
> > > >>> I would hate to have to add that to a README or INSTALL file. Surely
> > > >>> there's a simpler solution :)
>
> > > >>> Thank you.
>
> > > >>> --
> > > >>> 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
>
> > --
> > 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

-- 
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