2016-04-14 15 views
15

sto ottenendo il seguente stack trace prima volta corro activator runGiocare quadro incoerente accumulo

[warn] [NOT FOUND ] org.apache.commons#commons-compress;1.7!commons-compress.jar (1ms) 
[warn] ==== activator-launcher-local: tried 
[warn] /activator-dist-1.3.9/repository/org.apache.commons/commons-compress/1.7/jars/commons-compress.jar 
[warn] [NOT FOUND ] org.tukaani#xz;1.4!xz.jar (0ms) 
[warn] ==== activator-launcher-local: tried 
[warn] /activator-dist-1.3.9/repository/org.tukaani/xz/1.4/jars/xz.jar 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] ::    FAILED DOWNLOADS   :: 
[warn] ::^see resolution messages for details^:: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: org.apache.commons#commons-compress;1.7!commons-compress.jar 
[warn] :: org.tukaani#xz;1.4!xz.jar 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
sbt.ResolveException: download failed: org.apache.commons#commons-compress;1.7!commons-compress.jar 
download failed: org.tukaani#xz;1.4!xz.jar 
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:291) 

Full trace here

A volte ho la possibilità di premere retry e quando lo faccio riesce. Lo sto costruendo con la finestra mobile e vorrei che funzionasse sempre.

qui sono i miei file di configurazione

build.sbt

name := """swsupplymonitor""" 

version := "1.0-SNAPSHOT" 

libraryDependencies ++= Seq(
    "mysql" % "mysql-connector-java" % "5.1.18", 
    "com.typesafe.play" %% "anorm" % "2.4.0", 
    "org.scalatest" %% "scalatest" % "2.2.1" % "test", 
    "org.scalatestplus" %% "play" % "1.4.0" % "test", 
    javaJdbc 
) 

lazy val root = (project in file(".")).enablePlugins(PlayScala) 

build.properties

#Activator-generated Properties 
#Tue Jul 07 09:30:59 CEST 2015 
template.uuid=f5aa99a5-66e6-4ba6-abda-852c14da8938 
sbt.version=0.13.8 

plugins.sbt

logLevel := Level.Warn 


// The Typesafe repository 
resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/" 

// Use the Play sbt plugin for Play projects 
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.8") 

e questo è il mio Dockerfile

FROM java:8 
MAINTAINER Nils Eriksson 
ENV UPDATED_AT=2016-03-19 

RUN apt-get update && apt-get upgrade -y 
RUN apt-get install -y curl unzip 
RUN curl -o ./activator.zip http://downloads.typesafe.com/typesafe-activator/1.3.9/typesafe-activator-1.3.9.zip 
RUN unzip activator.zip -d/&& rm activator.zip && chmod a+x /activator-dist-1.3.9/bin 
ENV PATH $PATH:/activator-dist-1.3.9/bin 

EXPOSE 9000 8888 
RUN mkdir /app 
WORKDIR /app 
COPY ./ . 

CMD ["activator", "run"] 

che ho eseguito con questo comando

docker run -di -v $(pwd):/app:rw -p $PORT:9000 --name beacon-backend --link db:db beacon-backend 
+0

Guardando il messaggio di errore, ho avuto l'impressione di essere "offline" poiché non è stato utilizzato alcun repository remoto per individuare le dipendenze. Sei sicuro che la finestra mobile abbia accesso a Internet all'avvio? – marcospereira

risposta

1

In primo luogo, verificare la connessione. Il download delle dipendenze non risolto è dovuto al fatto che, mentre risolvono le dipendenze, sbt non può connettersi agli archivi remoti per scaricarli.

se stai collegando un firewall completo controlla anche che questo repos sia permesso.

-1

set sbt.version = 0.13.11 in build.properties.

Problemi correlati