Even though I would like to know if there is a better solution it seems 
that the workaround using profiles (and optionally using aliases) mentioned 
in the thread 
http://librelist.com/browser//leiningen/2012/8/29/plugins-can-t-be-on-s3/#648e7f85c85df8f7248fc9365693c20c
 works 
for me.  In that thread the submitter stated it did not work for him, but I 
have not seen any issues on my end. 

So now I have a 
:plugins [[s3-wagon-private "1.1.2"]]
:profiles {:plugins [[lein-install "0.1.0-SNAPSHOT"]]}

with some aliases set up to make things easier.

Please advise if this is not reliable behavior or if there is (or will be) 
a better way to handle this.

Thanks,
Ryan


On Friday, July 5, 2013 11:29:46 AM UTC-4, Ryan Stradling wrote:
>
> I also found this thread 
> http://librelist.com/browser//leiningen/2012/8/29/plugins-can-t-be-on-s3/#648e7f85c85df8f7248fc9365693c20c
>  that 
> discusses this issue.  I tried to add after the defproject form...
> (cemerick.pomegranate.aether/register-wagon-factory!
> "s3p" #(eval '(org.springframework.aws.maven.PrivateS3Wagon.)))
> But still get the same no connector available to access repository
>
>
>
> On Friday, July 5, 2013 11:17:00 AM UTC-4, Ryan Stradling wrote:
>>
>> I have created a lein plugin called lein-install.  Lein install is 
>> published to a private s3 repo using s3-private-wagon.  That all works 
>> fine.  I have another project called lein-webapp that has a project like 
>> so...
>>   :plugins [[s3-wagon-private "1.1.2"] 
>>             [lein-install "0.1.0-SNAPSHOT"]]
>> When running lein deps I get a 
>> *
>> *
>> *Could not transfer artifact 
>> lein-install:lein-install:pom:0.1.0-SNAPSHOT from/to snapshots: No 
>> connector available to access repository snapshots  of type default using 
>> the available factories FileRepositoryConnectorFactory, 
>> WagonRepositoryConnectorFactory*
>> *This could be due to a typo in :dependencies or network issues.*
>>
>> But if I do the following to my lein-webapp project file
>>   :plugins [[s3-wagon-private "1.1.2"]]
>>   :dependencies [[lein-install "0.1.0-SNAPSHOT"]]
>>
>> The dependency is found.  I also have many other projects that do NOT 
>> include lein-install but use the private s3 repo to grab dependencies and 
>> all works file.
>>
>> I believe the issue is a chicken and egg issue due to lein-install and 
>> s3-wagon-private being listed in the plugins section and lein-install being 
>> dependent on s3-wagon-private.  Are there any workarounds to this?
>>
>> Thanks,
>> Ryan
>>
>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to