Re: library development

2013-12-20 Thread Phil Hagelberg
On Friday, December 20, 2013 9:16:59 AM UTC-8, John Gabriele wrote:

>
> If I can just `lein install` my libs (or other people's libs) and then use 
> them in all my projects (just like the libs found at clojars), what extra 
> functionality does lein-localrepo provide beyond that?
>

It used to be that you needed lein-localrepo if you wanted to put a jar in 
your local repository that wasn't a Leiningen project (if you couldn't do 
`lein install`). But these days you can do `lein deploy 
file:///home/me/.m2/repository com.somebody/mylib 0.1.0 mylib.jar 
mylib-pom.xml` to get any old jar+pom into your ~/.m2 repository.

There may be other things lein-localrepo can be used for that aren't 
covered by Leiningen, but in my experience that was the main thing people 
used it for. Perhaps if you don't have a pom and don't feel like generating 
a dummy one then it's a better fit.

-Phil 

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread Shantanu Kumar
Author of lein-localrepo here. Just to mention few points:

1. Leiningen builds over Maven's transitive dependency management system. 
So, I guess at some point of time you just have to accept Maven's 
nomenclature.

2. `lein install` works when you have source code and a `project.clj` for 
your project. `lein-localrepo` helps you with third-party JARs for which 
you probably have no source code.

3. Can `lein-localrepo` help you totally forget about Maven? Sorry, see #1

Shantanu

On Friday, 20 December 2013 23:57:55 UTC+5:30, Magomimmo wrote:
>
> I used localrepo as Timmy said: 
> - to install in the local maven repository a native dynamic c++ lib and 
> its corresponding java wrapper
> - to makes it available to all my clojure/java projects requiring to use 
> that lib (artifact in maven parlance) 
>
> It works like a charm.
>
> Here you can find a sample of its use:
>
>
> http://docs.opencv.org/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.html#install-the-java-specific-libs-as-local-repository
>
> HIH 
> mimmo
>
> On Dec 20, 2013, at 6:22 PM, Tim Visher > 
> wrote:
>
> On Fri, Dec 20, 2013 at 12:16 PM, John Gabriele 
> > 
> wrote:
>
> If I can just `lein install` my libs (or other people's libs) and then use
> them in all my projects (just like the libs found at clojars), what extra
> functionality does lein-localrepo provide beyond that?
>
>
> lein-localrepo provides ways to interact with the local repo beyond
> just installing a leiningen project to it. You can install arbitrary
> artifacts that have poms. You can use to grab coords for a file. Etc.
>
> --
>
> In Christ,
>
> Timmy V.
>
> http://blog.twonegatives.com/
> http://five.sentenc.es/ -- Spend less time on mail
>
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@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 unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+u...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread Mimmo Cosenza
I used localrepo as Timmy said: 
- to install in the local maven repository a native dynamic c++ lib and its 
corresponding java wrapper
- to makes it available to all my clojure/java projects requiring to use that 
lib (artifact in maven parlance) 

It works like a charm.

Here you can find a sample of its use:

http://docs.opencv.org/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.html#install-the-java-specific-libs-as-local-repository

HIH 
mimmo

On Dec 20, 2013, at 6:22 PM, Tim Visher  wrote:

> On Fri, Dec 20, 2013 at 12:16 PM, John Gabriele  wrote:
>> If I can just `lein install` my libs (or other people's libs) and then use
>> them in all my projects (just like the libs found at clojars), what extra
>> functionality does lein-localrepo provide beyond that?
> 
> lein-localrepo provides ways to interact with the local repo beyond
> just installing a leiningen project to it. You can install arbitrary
> artifacts that have poms. You can use to grab coords for a file. Etc.
> 
> --
> 
> In Christ,
> 
> Timmy V.
> 
> http://blog.twonegatives.com/
> http://five.sentenc.es/ -- Spend less time on mail
> 
> -- 
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: library development

2013-12-20 Thread Bob Hutchison

On Dec 20, 2013, at 9:22 AM, Daniel Higginbotham  wrote:

> "lein install" actually installs your library ~/.m2/repository in addition to 
> creating the pom and jar. That should be all you need to do.

[message was bounced earlier…]

Thank you. You’re right. As it happens, I just discovered that myself. I nice 
cup of tea and thinking “there’s no way these leiningen guys didn’t do 
something so obvious” led be to suck it up and poke around my maven repository 
to see what I could see. Maven’s getting pretty quick isn’t it?

Cheers,
Bob

> 
> On Friday, December 20, 2013 9:09:32 AM UTC-5, Bob Hutchison wrote:
> Hi, 
> 
> I’m missing something. And it’s annoying me. 
> 
> Let’s say I’m working on three or four projects and there’s some code that 
> really should be developed as a library and used by each of the projects. A 
> similar thing happens if I fork a library from github. I don’t want to make 
> any of this code public so clojars is not an option. It’s clear enough that 
> the solution to this will involve a local maven repository somehow. 
> 
> Now, I don’t know maven. I like it that way. I *do* *not* want to know maven. 
> It’s so low on my priority list that reviewing the new C++ standard is 
> higher. Basically it’ll never get to the top of the list. 
> 
> Furthermore I think requiring someone to know maven to do any non-trivial 
> Clojure development is a bad plan. This is surely one of the founding goals 
> of Leiningen. 
> 
> I’ve found some documentation and blog posts that, as soon as they get 
> interesting, pretty much all end up assuming you know maven. I’ve found 
> lein-localrepo plugin, which is was hopeful until you read it’s docs and see 
> that it describes itself in maven terminology (why do I care what the maven 
> coordinates of a file are? *WHY* do I have to know? Is this about Clojure or 
> Java jar files? Are they different?) 
> 
> Lein install makes a jar file and a pom file. So what? Is there something you 
> do with these? There must be. But since I don’t know maven I’ve not got a 
> clue what that might be. 
> 
> What I’d like to do is type something no more complex than “lein 
> local-install” and be done with it. I do not care if every developer on my 
> team has to execute that command. I don’t care about sharing. I don’t care 
> about naming. I just want to work on my library, install it, and use it in my 
> other four projects. 
> 
> Running “cp -r” will do it, but it’s a bit crude. 
> 
> Thanks, 
> Bob
> 
> -- 
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread Tim Visher
On Fri, Dec 20, 2013 at 12:16 PM, John Gabriele  wrote:
> If I can just `lein install` my libs (or other people's libs) and then use
> them in all my projects (just like the libs found at clojars), what extra
> functionality does lein-localrepo provide beyond that?

lein-localrepo provides ways to interact with the local repo beyond
just installing a leiningen project to it. You can install arbitrary
artifacts that have poms. You can use to grab coords for a file. Etc.

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread John Gabriele
On Friday, December 20, 2013 9:22:30 AM UTC-5, Daniel Higginbotham wrote:
> > "lein install" actually installs your library ~/.m2/repository in 
addition
> >  to creating the pom and jar. That should be all you need to do.

On Friday, December 20, 2013 12:16:59 PM UTC-5, John Gabriele wrote:
>
> Ah, neat. This works great!
>
> If I can just `lein install` my libs (or other people's libs) and then use 
> them in all my projects (just like the libs found at clojars), what extra 
> functionality does lein-localrepo provide beyond that?
>
>
By "or other people's libs", I meant if it's a lib not on clojars, and if 
I've cloned its project directory (and it's a project managed by lein) .

(Also, sorry about top-posting and also for including the entire parent 
message in my previous message.)

-- John

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread John Gabriele
Ah, neat. This works great!

If I can just `lein install` my libs (or other people's libs) and then use 
them in all my projects (just like the libs found at clojars), what extra 
functionality does lein-localrepo provide beyond that?

-- John


On Friday, December 20, 2013 9:22:30 AM UTC-5, Daniel Higginbotham wrote:
>
> "lein install" actually installs your library ~/.m2/repository in addition 
> to creating the pom and jar. That should be all you need to do.
>
> On Friday, December 20, 2013 9:09:32 AM UTC-5, Bob Hutchison wrote:
>>
>> Hi, 
>>
>> I’m missing something. And it’s annoying me. 
>>
>> Let’s say I’m working on three or four projects and there’s some code 
>> that really should be developed as a library and used by each of the 
>> projects. A similar thing happens if I fork a library from github. I don’t 
>> want to make any of this code public so clojars is not an option. It’s 
>> clear enough that the solution to this will involve a local maven 
>> repository somehow. 
>>
>> Now, I don’t know maven. I like it that way. I *do* *not* want to know 
>> maven. It’s so low on my priority list that reviewing the new C++ standard 
>> is higher. Basically it’ll never get to the top of the list. 
>>
>> Furthermore I think requiring someone to know maven to do any non-trivial 
>> Clojure development is a bad plan. This is surely one of the founding goals 
>> of Leiningen. 
>>
>> I’ve found some documentation and blog posts that, as soon as they get 
>> interesting, pretty much all end up assuming you know maven. I’ve found 
>> lein-localrepo plugin, which is was hopeful until you read it’s docs and 
>> see that it describes itself in maven terminology (why do I care what the 
>> maven coordinates of a file are? *WHY* do I have to know? Is this about 
>> Clojure or Java jar files? Are they different?) 
>>
>> Lein install makes a jar file and a pom file. So what? Is there something 
>> you do with these? There must be. But since I don’t know maven I’ve not got 
>> a clue what that might be. 
>>
>> What I’d like to do is type something no more complex than “lein 
>> local-install” and be done with it. I do not care if every developer on my 
>> team has to execute that command. I don’t care about sharing. I don’t care 
>> about naming. I just want to work on my library, install it, and use it in 
>> my other four projects. 
>>
>> Running “cp -r” will do it, but it’s a bit crude. 
>>
>> Thanks, 
>> Bob
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread Tim Visher
Maybe using lein checkouts is also something that would interest you?

https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies

On Fri, Dec 20, 2013 at 9:22 AM, Daniel Higginbotham
 wrote:
> "lein install" actually installs your library ~/.m2/repository in addition
> to creating the pom and jar. That should be all you need to do.
>
>
> On Friday, December 20, 2013 9:09:32 AM UTC-5, Bob Hutchison wrote:
>>
>> Hi,
>>
>> I’m missing something. And it’s annoying me.
>>
>> Let’s say I’m working on three or four projects and there’s some code that
>> really should be developed as a library and used by each of the projects. A
>> similar thing happens if I fork a library from github. I don’t want to make
>> any of this code public so clojars is not an option. It’s clear enough that
>> the solution to this will involve a local maven repository somehow.
>>
>> Now, I don’t know maven. I like it that way. I *do* *not* want to know
>> maven. It’s so low on my priority list that reviewing the new C++ standard
>> is higher. Basically it’ll never get to the top of the list.
>>
>> Furthermore I think requiring someone to know maven to do any non-trivial
>> Clojure development is a bad plan. This is surely one of the founding goals
>> of Leiningen.
>>
>> I’ve found some documentation and blog posts that, as soon as they get
>> interesting, pretty much all end up assuming you know maven. I’ve found
>> lein-localrepo plugin, which is was hopeful until you read it’s docs and see
>> that it describes itself in maven terminology (why do I care what the maven
>> coordinates of a file are? *WHY* do I have to know? Is this about Clojure or
>> Java jar files? Are they different?)
>>
>> Lein install makes a jar file and a pom file. So what? Is there something
>> you do with these? There must be. But since I don’t know maven I’ve not got
>> a clue what that might be.
>>
>> What I’d like to do is type something no more complex than “lein
>> local-install” and be done with it. I do not care if every developer on my
>> team has to execute that command. I don’t care about sharing. I don’t care
>> about naming. I just want to work on my library, install it, and use it in
>> my other four projects.
>>
>> Running “cp -r” will do it, but it’s a bit crude.
>>
>> Thanks,
>> Bob
>
> --
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: library development

2013-12-20 Thread Daniel Higginbotham
"lein install" actually installs your library ~/.m2/repository in addition 
to creating the pom and jar. That should be all you need to do.

On Friday, December 20, 2013 9:09:32 AM UTC-5, Bob Hutchison wrote:
>
> Hi, 
>
> I’m missing something. And it’s annoying me. 
>
> Let’s say I’m working on three or four projects and there’s some code that 
> really should be developed as a library and used by each of the projects. A 
> similar thing happens if I fork a library from github. I don’t want to make 
> any of this code public so clojars is not an option. It’s clear enough that 
> the solution to this will involve a local maven repository somehow. 
>
> Now, I don’t know maven. I like it that way. I *do* *not* want to know 
> maven. It’s so low on my priority list that reviewing the new C++ standard 
> is higher. Basically it’ll never get to the top of the list. 
>
> Furthermore I think requiring someone to know maven to do any non-trivial 
> Clojure development is a bad plan. This is surely one of the founding goals 
> of Leiningen. 
>
> I’ve found some documentation and blog posts that, as soon as they get 
> interesting, pretty much all end up assuming you know maven. I’ve found 
> lein-localrepo plugin, which is was hopeful until you read it’s docs and 
> see that it describes itself in maven terminology (why do I care what the 
> maven coordinates of a file are? *WHY* do I have to know? Is this about 
> Clojure or Java jar files? Are they different?) 
>
> Lein install makes a jar file and a pom file. So what? Is there something 
> you do with these? There must be. But since I don’t know maven I’ve not got 
> a clue what that might be. 
>
> What I’d like to do is type something no more complex than “lein 
> local-install” and be done with it. I do not care if every developer on my 
> team has to execute that command. I don’t care about sharing. I don’t care 
> about naming. I just want to work on my library, install it, and use it in 
> my other four projects. 
>
> Running “cp -r” will do it, but it’s a bit crude. 
>
> Thanks, 
> Bob

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


library development

2013-12-20 Thread Bob Hutchison
Hi,

I’m missing something. And it’s annoying me.

Let’s say I’m working on three or four projects and there’s some code that 
really should be developed as a library and used by each of the projects. A 
similar thing happens if I fork a library from github. I don’t want to make any 
of this code public so clojars is not an option. It’s clear enough that the 
solution to this will involve a local maven repository somehow.

Now, I don’t know maven. I like it that way. I *do* *not* want to know maven. 
It’s so low on my priority list that reviewing the new C++ standard is higher. 
Basically it’ll never get to the top of the list.

Furthermore I think requiring someone to know maven to do any non-trivial 
Clojure development is a bad plan. This is surely one of the founding goals of 
Leiningen.

I’ve found some documentation and blog posts that, as soon as they get 
interesting, pretty much all end up assuming you know maven. I’ve found 
lein-localrepo plugin, which is was hopeful until you read it’s docs and see 
that it describes itself in maven terminology (why do I care what the maven 
coordinates of a file are? *WHY* do I have to know? Is this about Clojure or 
Java jar files? Are they different?)

Lein install makes a jar file and a pom file. So what? Is there something you 
do with these? There must be. But since I don’t know maven I’ve not got a clue 
what that might be.

What I’d like to do is type something no more complex than “lein local-install” 
and be done with it. I do not care if every developer on my team has to execute 
that command. I don’t care about sharing. I don’t care about naming. I just 
want to work on my library, install it, and use it in my other four projects.

Running “cp -r” will do it, but it’s a bit crude.

Thanks,
Bob

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.