I created a sandbox play project for testing. It was building and passing the tests on Travis CI. I added dependency on swagger-play2 and it started failing the tests with error message:
sbt.ResolveException: download failed: com.typesafe.play#play_2.10;2.2.1!play_2.10.jar(src)
Steps to reproduce:
build.sbt
It seems strange adding dependency on swagger would trigger this build failure. What am I doing wrong? Feel free to send a pull request on the github project if you want to test your fixes ((Travis should auto build your pull request).
Complete GitHub project history: https://github.com/pathikrit/play-test/commits/master
Complete Travis-CI build history: https://travis-ci.org/pathikrit/play-test/builds
Commit that triggers build failure: https://github.com/pathikrit/play-test/commit/d8ad88083b56dd0269eaefc30025a42f54f0dba5
I now have a script to setup the dependencies:
PLAY_VERSION=2.2.1
wget http://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip
unzip play-${PLAY_VERSION}.zip -d ${HOME}
# Manually populate the play directory with missing jars - TODO: remove this hack (see http://stackoverflow.com/questions/21361621/)
SCALA_VERSION=2.10
MAVEN_PLAY=http://repo.typesafe.com/typesafe/maven-releases/com/typesafe/play/play_${SCALA_VERSION}/${PLAY_VERSION}/play_${SCALA_VERSION}-${PLAY_VERSION}
LOCAL_REPO=${HOME}/play-${PLAY_VERSION}/repository/local/com.typesafe.play/play_${SCALA_VERSION}/${PLAY_VERSION}
mkdir ${LOCAL_REPO}/srcs/ ${LOCAL_REPO}/poms/
wget ${MAVEN_PLAY}.pom --output-document ${LOCAL_REPO}/poms/play_${SCALA_VERSION}.pom
wget ${MAVEN_PLAY}-sources.jar --output-document ${LOCAL_REPO}/srcs/play_${SCALA_VERSION}-sources.jar
wget ${MAVEN_PLAY}-test-sources.jar --output-document ${LOCAL_REPO}/srcs/play_${SCALA_VERSION}-test-sources.jar
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments