Reputation: 71
I tried to build akka as described on the website (http://akka.io/docs/akka/1.2/dev/building-akka.html) but was unsuccessful.
I'm running Windows 7 with cygwin, sbt 0.11.0 and scala 2.9.1. Here is the sequence of steps I followed:
git clone git://github.com/jboner/akka.git
git clone git://github.com/jboner/akka-modules.git
cd akka
sbt.bat update
The last command fails with the following error:
$ sbt.bat update
C:\Users\***\Desktop\akka>set SCRIPT_DIR=C:\SBT\
C:\Users\***\Desktop\akka>java -Xmx512M -jar "C:\SBT\sbt-launch.jar" update
Getting net.java.dev.jna jna 3.2.3 ...
:: problems summary ::
:::: WARNINGS
module not found: net.java.dev.jna#jna;3.2.3
==== local: tried
C:\Users\***\.ivy2/local/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml
==== Maven2 Local: tried
file://C:\Users\***/.m2/repository/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
==== typesafe-ivy-releases: tried
http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml
==== Maven Central: tried
http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
==== Scala-Tools Maven2 Repository: tried
http://scala-tools.org/repo-releases/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
==== Scala-Tools Maven2 Snapshots Repository: tried
http://scala-tools.org/repo-snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: net.java.dev.jna#jna;3.2.3: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml
Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
Server access Error: Connection timed out: connect url=http://scala-tools.org/repo-releases/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
Server access Error: Connection timed out: connect url=http://scala-tools.org/repo-snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: net.java.dev.jna#jna;3.2.3: not found
Error during sbt execution: Error retrieving required libraries
(see C:\Users\***\.sbt\boot\update.log for complete log)
Error: Could not retrieve JNA
With sbt 0.7.7, I get the following (it prompts for a name):
./sbt.bat update
C:\Users\***\Desktop\akka>set SCRIPT_DIR=C:\Users\***\Desktop\akka\
C:\Users\***\Desktop\akka>java -Xmx512M -jar "C:\Users\***\Desktop\akka\sbt-launch.jar" update
Name:
Am I doing something wrong? Can you help me fix this?
Thanks in advance
Upvotes: 3
Views: 2575
Reputation: 2676
Similar error. In my case this is related using http when https is required
Upvotes: 1
Reputation: 208
I had the same kind of problem (module not found in central repos), and disabling ipv6 on my network interface solved my problem... It looks like accessing repos through ipv6 is not working well so far
Upvotes: 2
Reputation: 1325137
Note, the akka compilation instructions in the section "SBT interactive mode" seem to reference an old sbt
% sbt
[info] Building project akka 1.2 against Scala 2.9.1
[info] using AkkaParentProject with sbt 0.7.6 and Scala 2.7.7
^^^^^^^^^
|
--- no xsbt 0.10+ here...
But the akka build.properties
does reference an sbt 0.11.0.
Considering that http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom is a valid address, I would suggest checking any internet issue (like a proxy not set for the sbt session).
Upvotes: 2