Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

SBT can't download JARs
 Post subject: SBT can't download JARs Post rating: 0   New post Posted: Sun 10 Jul, 2016, 10:05 

User rating: 0
Joined: Sun 27 Mar, 2016, 18:59
Posts: 15
Location: Czech Republic, Louny
Use SBT TOOL https://www.scala-sbt.org/ with following build.sbt

name := "dukascopy repo test"

scalaVersion := "2.11.8"

resolvers += "DC Public" at "https://www.dukascopy.com/client/jforexlib/publicrepo/"

libraryDependencies ++= Seq(
      "com.dukascopy.dds2" % "DDS2-jClient-JForex" % "2.45.46",
      "com.dukascopy.api" % "JForex-API" % "2.12.40"
                  )


then type for example sbt package to force fetching jars ends with error

Quote:
[info] Resolving com.dukascopy.api#JForex-API;2.12.40 ...
[warn] module not found: com.dukascopy.api#JForex-API;2.12.40
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/dukascopy/api/JForex-API/2.12.40/JFo
rex-API-2.12.40.pom
[warn] ==== DC Public: tried
[warn] https://www.dukascopy.com/client/jforexlib/publicrepo/com/dukascopy/api/
JForex-API/2.12.40/JForex-API-2.12.40.pom
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.dukascopy.dds2#DDS2-jClient-JForex;2.45.46: not found
[warn] :: com.dukascopy.api#JForex-API;2.12.40: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::


Problem is with your HTTP server sending redirect loops:

Quote:
HEAD /client/jforexlib/publicrepo/com/dukascopy/dds2/DDS2-jClient-JForex/2.45.46/DDS2-jClient-JForex-2.45.46.pom HTTP/1.1
User-Agent: Apache Ivy/2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a
Host: www.dukascopy.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.1 301 Redirect
Date: Sun, 10 Jul 2016 08:57:37 GMT
Content-Type: text/html
Connection: keep-alive
Set-Cookie: __cfduid=d90c8427d34b0cbf0648d3e54f5db76f31468141056; expires=Mon, 10-Jul-17 08:57:36 GMT; path=/; domain=.dukascopy.com; HttpOnly
Cache-Control: no-store
Location: https://www.dukascopy.com/client/jforexlib/publicrepo/com/dukascopy/dds2/DDS2-jClient-JForex/2.45.46/DDS2-jClient-JForex-2.45.46.pom
Content-Language: en
Server: cloudflare-nginx
CF-RAY: 2c02cf25f61f0a96-PRG

HEAD /client/jforexlib/publicrepo/com/dukascopy/api/JForex-API/2.12.40/JForex-API-2.12.40.pom HTTP/1.1
User-Agent: Apache Ivy/2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a
Host: www.dukascopy.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.1 301 Redirect
Date: Sun, 10 Jul 2016 08:57:37 GMT
Content-Type: text/html
Connection: keep-alive
Set-Cookie: __cfduid=d38747cb3891ff679a789f1f4bbbe8e691468141057; expires=Mon, 10-Jul-17 08:57:37 GMT; path=/; domain=.dukascopy.com; HttpOnly
Cache-Control: no-store
Location: https://www.dukascopy.com/client/jforexlib/publicrepo/com/dukascopy/api/JForex-API/2.12.40/JForex-API-2.12.40.pom
Content-Language: en
Server: cloudflare-nginx
CF-RAY: 2c02cf26d6280a96-PRG



Fix your http server


 
 Post subject: Re: SBT can't download JARs Post rating: 0   New post Posted: Tue 12 Jul, 2016, 09:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Quote:
[warn] module not found: com.dukascopy.api#JForex-API;2.12.40

It is available here:
https://www.dukascopy.com/client/jforex ... I/2.12.40/

Repo address:
https://www.dukascopy.com/client/jforexlib/publicrepo/


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com