• 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.
  • 相关阅读:
    windows上phpstudy配置memcache
    获取全站详情链接,并输出为txt文本
    Linux 宝塔面板免费版开启 waf 防火墙的方法
    where条件多种情况
    网站加https
    git常用命令
    缓存
    Stream转换成byte[] 、将 byte[] 转成 Stream 、Stream和文件的转换、从文件读取 Stream
    C#发送邮件
    Ref和Out的区别
  • 原文地址:https://www.cnblogs.com/jpeg/p/set-proxy-for-sbt-in-activator.html
Copyright © 2020-2023  润新知