How do I install guice?
I am building a web app. I just included Compojure and Friend as dependencies, and one of these, in turn, relies on Google Guice. I type: lein uberjar and I get a whole lot of output which includes: Could not find artifact com.google.code.guice:guice:pom:2.0 in central (http://repo1.maven.org/maven2) Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars (https://clojars.org/repo/) Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ to guice (http://guice-maven.googlecode.com/svn/trunk): Not authorized, ReasonPhrase:Authorization Required. Could not find artifact com.google.code.guice:guice:pom:2.0 in alchim.snapshots (http://alchim.sf.net/download/snapshots) Check :dependencies and :repositories for typos. It's possible the specified jar is not in any repository. If so, see "Free-floating Jars" under http://j.mp/repeatability Uberjar aborting because jar/compilation failed: Could not resolve dependencies I find instructions for installing guice here: http://code.google.com/p/roboguice/issues/detail?id=38 I download guice from here: http://code.google.com/p/google-guice/downloads/list On my Mac, at the command line, I then run: mvn install:install-file -DgroupId=com.google.android.maps - DartifactId=maps -Dversion=3_r3 -Dpackaging=jar -Dfile=/Users/lkrubner/ Downloads/guice-2.0/guice-2.0.jar and I get: [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-pom --- [INFO] Installing /Users/lkrubner/Downloads/guice-2.0/guice-2.0.jar to /Users/lkrubner/.m2/repository/com/google/android/maps/maps/3_r3/ maps-3_r3.jar [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 0.718s [INFO] Finished at: Mon Jan 14 10:18:44 EST 2013 [INFO] Final Memory: 4M/92M [INFO] I then again run: lein uberjar and again I get: lein uberjar Could not find artifact com.google.code.guice:guice:pom:2.0 in central (http://repo1.maven.org/maven2) Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars (https://clojars.org/repo/) Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ to guice (http://guice-maven.googlecode.com/svn/trunk): Not authorized, ReasonPhrase:Authorization Required. Could not find artifact com.google.code.guice:guice:pom:2.0 in alchim.snapshots (http://alchim.sf.net/download/snapshots) Check :dependencies and :repositories for typos. It's possible the specified jar is not in any repository. If so, see "Free-floating Jars" under http://j.mp/repeatability Uberjar aborting because jar/compilation failed: Could not resolve dependencies What am I doing wrong? -- 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
Re: How do I install guice?
Please change your Friend dependency to [com.cemerick/friend "0.1.3"]. Prior versions transitively depended upon a Guice artifact that was hosted on a now-404 Maven repository via Google Code's svn. Friend >= 0.1.3 depends only on artifacts available in Clojars and Maven Central, and will remain that way. Sorry for the inconvenience, - Chas On Jan 14, 2013, at 10:23 AM, larry google groups wrote: > I am building a web app. I just included Compojure and Friend as > dependencies, and one of these, in turn, relies on Google Guice. I > type: > > lein uberjar > > and I get a whole lot of output which includes: > > Could not find artifact com.google.code.guice:guice:pom:2.0 in central > (http://repo1.maven.org/maven2) > Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars > (https://clojars.org/repo/) > Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ > to guice (http://guice-maven.googlecode.com/svn/trunk): Not > authorized, ReasonPhrase:Authorization Required. > Could not find artifact com.google.code.guice:guice:pom:2.0 in > alchim.snapshots (http://alchim.sf.net/download/snapshots) > Check :dependencies and :repositories for typos. > It's possible the specified jar is not in any repository. > If so, see "Free-floating Jars" under http://j.mp/repeatability > Uberjar aborting because jar/compilation failed: Could not resolve > dependencies > > > I find instructions for installing guice here: > > http://code.google.com/p/roboguice/issues/detail?id=38 > > I download guice from here: > > http://code.google.com/p/google-guice/downloads/list > > On my Mac, at the command line, I then run: > > mvn install:install-file -DgroupId=com.google.android.maps - > DartifactId=maps -Dversion=3_r3 -Dpackaging=jar -Dfile=/Users/lkrubner/ > Downloads/guice-2.0/guice-2.0.jar > > and I get: > > [INFO] Scanning for projects... > [INFO] > [INFO] > > [INFO] Building Maven Stub Project (No POM) 1 > [INFO] > > [INFO] > [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ > standalone-pom --- > [INFO] Installing /Users/lkrubner/Downloads/guice-2.0/guice-2.0.jar > to /Users/lkrubner/.m2/repository/com/google/android/maps/maps/3_r3/ > maps-3_r3.jar > [INFO] > > [INFO] BUILD SUCCESS > [INFO] > > [INFO] Total time: 0.718s > [INFO] Finished at: Mon Jan 14 10:18:44 EST 2013 > [INFO] Final Memory: 4M/92M > [INFO] > > > > I then again run: > > lein uberjar > > and again I get: > > lein uberjar > Could not find artifact com.google.code.guice:guice:pom:2.0 in central > (http://repo1.maven.org/maven2) > Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars > (https://clojars.org/repo/) > Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ > to guice (http://guice-maven.googlecode.com/svn/trunk): Not > authorized, ReasonPhrase:Authorization Required. > Could not find artifact com.google.code.guice:guice:pom:2.0 in > alchim.snapshots (http://alchim.sf.net/download/snapshots) > Check :dependencies and :repositories for typos. > It's possible the specified jar is not in any repository. > If so, see "Free-floating Jars" under http://j.mp/repeatability > Uberjar aborting because jar/compilation failed: Could not resolve > dependencies > > What am I doing wrong? > > -- > 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
Re: How do I install guice?
Thank you for the fast reply. That helped. But do you (or anyone else here) know of a workaround for friend-oauth2? I get: lein uberjar Could not find artifact friend-oauth2:friend-oauth2:pom:0.0.2 in central (http://repo1.maven.org/maven2) Retrieving friend-oauth2/friend-oauth2/0.0.2/friend-oauth2-0.0.2.pom (4k) from https://clojars.org/repo/ Could not find artifact com.google.code.guice:guice:pom:2.0 in central (http://repo1.maven.org/maven2) Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars (https://clojars.org/repo/) Could not find artifact com.google.code.guice:guice:pom:2.0 in stuart (http://stuartsierra.com/maven2) Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ to guice (http://guice-maven.googlecode.com/svn/trunk): Not authorized, ReasonPhrase:Authorization Required. Could not find artifact com.google.code.guice:guice:pom:2.0 in alchim.snapshots (http://alchim.sf.net/download/snapshots) On 14 Sty, 11:12, Chas Emerick wrote: > Please change your Friend dependency to [com.cemerick/friend "0.1.3"]. > > Prior versions transitively depended upon a Guice artifact that was hosted on > a now-404 Maven repository via Google Code's svn. Friend >= 0.1.3 depends > only on artifacts available in Clojars and Maven Central, and will remain > that way. > > Sorry for the inconvenience, > > - Chas > > On Jan 14, 2013, at 10:23 AM, larry google groups wrote: > > > > > > > > > I am building a web app. I just included Compojure and Friend as > > dependencies, and one of these, in turn, relies on Google Guice. I > > type: > > > lein uberjar > > > and I get a whole lot of output which includes: > > > Could not find artifact com.google.code.guice:guice:pom:2.0 in central > > (http://repo1.maven.org/maven2) > > Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars > > (https://clojars.org/repo/) > > Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ > > to guice (http://guice-maven.googlecode.com/svn/trunk):Not > > authorized, ReasonPhrase:Authorization Required. > > Could not find artifact com.google.code.guice:guice:pom:2.0 in > > alchim.snapshots (http://alchim.sf.net/download/snapshots) > > Check :dependencies and :repositories for typos. > > It's possible the specified jar is not in any repository. > > If so, see "Free-floating Jars" underhttp://j.mp/repeatability > > Uberjar aborting because jar/compilation failed: Could not resolve > > dependencies > > > I find instructions for installing guice here: > > >http://code.google.com/p/roboguice/issues/detail?id=38 > > > I download guice from here: > > >http://code.google.com/p/google-guice/downloads/list > > > On my Mac, at the command line, I then run: > > > mvn install:install-file -DgroupId=com.google.android.maps - > > DartifactId=maps -Dversion=3_r3 -Dpackaging=jar -Dfile=/Users/lkrubner/ > > Downloads/guice-2.0/guice-2.0.jar > > > and I get: > > > [INFO] Scanning for projects... > > [INFO] > > [INFO] > > > > [INFO] Building Maven Stub Project (No POM) 1 > > [INFO] > > > > [INFO] > > [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ > > standalone-pom --- > > [INFO] Installing /Users/lkrubner/Downloads/guice-2.0/guice-2.0.jar > > to /Users/lkrubner/.m2/repository/com/google/android/maps/maps/3_r3/ > > maps-3_r3.jar > > [INFO] > > > > [INFO] BUILD SUCCESS > > [INFO] > > > > [INFO] Total time: 0.718s > > [INFO] Finished at: Mon Jan 14 10:18:44 EST 2013 > > [INFO] Final Memory: 4M/92M > > [INFO] > > > > > I then again run: > > > lein uberjar > > > and again I get: > > > lein uberjar > > Could not find artifact com.google.code.guice:guice:pom:2.0 in central > > (http://repo1.maven.org/maven2) > > Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars > > (https://clojars.org/repo/) > > Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ > > to guice (http://guice-maven.googlecode.com/svn/trunk):Not > > authorized, ReasonPhrase:Authorization Required. > > Could not find artifact com.google.code.guice:guice:pom:2.0 in > > alchim.snapshots (http://alchim.sf.net/download/snapshots) > > Check :dependencies and :repositories for typos. > > It's possible the specified jar is not in any repository. > > If so, see "Free-floating Jars" underhttp://j.mp/repeatability > > Uberjar aborting because jar/compilation failed: Could not resolve > > dependencies > > > What am I doing wrong? > > > -- > > 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
Re: How do I install guice?
Instead of this: [friend-oauth2 "0.0.2"] Use this: [friend-oauth2 "0.0.2" :exclusions [com.cemerick/friend]] [com.cemerick/friend "0.1.3"] That will keep lein from attempting to resolve the now-gone Guice artifact transitively referred to by the older revs of friend. - Chas On Jan 14, 2013, at 11:48 AM, larry google groups wrote: > Thank you for the fast reply. That helped. But do you (or anyone else > here) know of a workaround for friend-oauth2? I get: > > lein uberjar > Could not find artifact friend-oauth2:friend-oauth2:pom:0.0.2 in > central (http://repo1.maven.org/maven2) > Retrieving friend-oauth2/friend-oauth2/0.0.2/friend-oauth2-0.0.2.pom > (4k) >from https://clojars.org/repo/ > Could not find artifact com.google.code.guice:guice:pom:2.0 in central > (http://repo1.maven.org/maven2) > Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars > (https://clojars.org/repo/) > Could not find artifact com.google.code.guice:guice:pom:2.0 in stuart > (http://stuartsierra.com/maven2) > Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ > to guice (http://guice-maven.googlecode.com/svn/trunk): Not > authorized, ReasonPhrase:Authorization Required. > Could not find artifact com.google.code.guice:guice:pom:2.0 in > alchim.snapshots (http://alchim.sf.net/download/snapshots) > > > > > On 14 Sty, 11:12, Chas Emerick wrote: >> Please change your Friend dependency to [com.cemerick/friend "0.1.3"]. >> >> Prior versions transitively depended upon a Guice artifact that was hosted >> on a now-404 Maven repository via Google Code's svn. Friend >= 0.1.3 >> depends only on artifacts available in Clojars and Maven Central, and will >> remain that way. >> >> Sorry for the inconvenience, >> >> - Chas >> >> On Jan 14, 2013, at 10:23 AM, larry google groups wrote: >> >> >> >> >> >> >> >>> I am building a web app. I just included Compojure and Friend as >>> dependencies, and one of these, in turn, relies on Google Guice. I >>> type: >> >>> lein uberjar >> >>> and I get a whole lot of output which includes: >> >>> Could not find artifact com.google.code.guice:guice:pom:2.0 in central >>> (http://repo1.maven.org/maven2) >>> Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars >>> (https://clojars.org/repo/) >>> Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ >>> to guice (http://guice-maven.googlecode.com/svn/trunk):Not >>> authorized, ReasonPhrase:Authorization Required. >>> Could not find artifact com.google.code.guice:guice:pom:2.0 in >>> alchim.snapshots (http://alchim.sf.net/download/snapshots) >>> Check :dependencies and :repositories for typos. >>> It's possible the specified jar is not in any repository. >>> If so, see "Free-floating Jars" underhttp://j.mp/repeatability >>> Uberjar aborting because jar/compilation failed: Could not resolve >>> dependencies >> >>> I find instructions for installing guice here: >> >>> http://code.google.com/p/roboguice/issues/detail?id=38 >> >>> I download guice from here: >> >>> http://code.google.com/p/google-guice/downloads/list >> >>> On my Mac, at the command line, I then run: >> >>> mvn install:install-file -DgroupId=com.google.android.maps - >>> DartifactId=maps -Dversion=3_r3 -Dpackaging=jar -Dfile=/Users/lkrubner/ >>> Downloads/guice-2.0/guice-2.0.jar >> >>> and I get: >> >>> [INFO] Scanning for projects... >>> [INFO] >>> [INFO] >>> >>> [INFO] Building Maven Stub Project (No POM) 1 >>> [INFO] >>> >>> [INFO] >>> [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ >>> standalone-pom --- >>> [INFO] Installing /Users/lkrubner/Downloads/guice-2.0/guice-2.0.jar >>> to /Users/lkrubner/.m2/repository/com/google/android/maps/maps/3_r3/ >>> maps-3_r3.jar >>> [INFO] >>> >>> [INFO] BUILD SUCCESS >>> [INFO] >>> >>> [INFO] Total time: 0.718s >>> [INFO] Finished at: Mon Jan 14 10:18:44 EST 2013 >>> [INFO] Final Memory: 4M/92M >>> [INFO] >>> >> >>> I then again run: >> >>> lein uberjar >> >>> and again I get: >> >>> lein uberjar >>> Could not find artifact com.google.code.guice:guice:pom:2.0 in central >>> (http://repo1.maven.org/maven2) >>> Could not find artifact com.google.code.guice:guice:pom:2.0 in clojars >>> (https://clojars.org/repo/) >>> Could not transfer artifact com.google.code.guice:guice:pom:2.0 from/ >>> to guice (http://guice-maven.googlecode.com/svn/trunk):Not >>> authorized, ReasonPhrase:Authorization Required. >>> Could not find artifact com.google.code.guice:guice:pom:2.0 in >>> alchim.snapshots (http://alchim.sf.net/download/snapshots) >>> Check :dependencies and :repositor