zoukankan      html  css  js  c++  java
  • Play!:SBT代理设置

    Play2.3.x,新建一个工程就比较头疼,sbt解析一大堆,很多都被墙了。使用GAE代理:

    set HTTP_PROXY=http://localhost:8087
    activator

    还有sbt的包老找不到,估计是官方源出了问题:

    sbt.ResolveException: unresolved dependency: com.typesafe.sbt#sbt-native-packager;0.7.4: not found

    需要在project/plugins.sbt文件中增加一行:

    resolvers += Resolver.url("bintray-sbt-plugins", url("https://dl.bintray.com/sbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns) 

    注意前后都要用空行隔开,否则会报格式错误。搞完之后,终于是把sbt的几个包给下下来了:

    [info] downloading http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/0.7.4/jars/sbt-nati
    ve-packager.jar ...
    [info]  [SUCCESSFUL ] com.typesafe.sbt#sbt-native-packager;0.7.4!sbt-native-packager.jar (6472ms)
    [info] downloading http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-js-engine/scala_2.10/sbt_0.13/1.0.1/jars/sbt-js-engine.
    jar ...
    [info]  [SUCCESSFUL ] com.typesafe.sbt#sbt-js-engine;1.0.1!sbt-js-engine.jar (4464ms)
    [info] downloading http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-webdriver/scala_2.10/sbt_0.13/1.0.0/jars/sbt-webdriver.
    jar ...
    [info]  [SUCCESSFUL ] com.typesafe.sbt#sbt-webdriver;1.0.0!sbt-webdriver.jar (4957ms)
    [info] downloading http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-web/scala_2.10/sbt_0.13/1.0.2/jars/sbt-web.jar ...
    [info]  [SUCCESSFUL ] com.typesafe.sbt#sbt-web;1.0.2!sbt-web.jar (8086ms)
    [info] Done updating.
  • 相关阅读:
    Mybatis多表查询
    (转)Java安全通信:HTTPS与SSL
    (转)RSA加密解密及数字签名Java实现
    (转)大型企业电话会议视频会议备份解决方案
    (转)虚拟IP原理
    虚拟IP---Linux下一个网卡配置多个IP
    C++ 点
    算法(8)Maximum Product Subarray
    算法(7)Majority Element II
    算法(6)3Sum Closest
  • 原文地址:https://www.cnblogs.com/jpeg/p/set-proxy-for-sbt-in-activator.html
Copyright © 2011-2022 走看看