如何用activator为Lagom创建一个新项目



刚刚按照本指南下载并安装了最新版本的activator(1.3.10)。

我安装activator发行版的位置是可写的,activator-1.3.10/bin被添加到我的$PATH

然后,我尝试创建一个像这样的新项目:

activator new test-project lagom-scala

…但我总是得到以下错误:

j3d@gonzo:~/Projects$ activator new test-project lagom-scala
Getting com.typesafe.activator activator-launcher 1.3.10 ...
:: problems summary ::
:::: WARNINGS
    module not found: com.typesafe.activator#activator-launcher;1.3.10
    ==== local: tried
      /home/j3d/.ivy2/local/com.typesafe.activator/activator-launcher/1.3.10/ivys/ivy.xml
      -- artifact com.typesafe.activator#activator-launcher;1.3.10!activator-launcher.jar:
      /home/j3d/.ivy2/local/com.typesafe.activator/activator-launcher/1.3.10/jars/activator-launcher.jar
    ==== activator-launcher-local: tried
    file:/opt/activator-1.3.10-minimal/repository/com.typesafe.activator/activator-launcher/1.3.10/ivys/ivy.xml
    ==== Maven Central: tried
      https://repo1.maven.org/maven2/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.pom
      -- artifact com.typesafe.activator#activator-launcher;1.3.10!activator-launcher.jar:
      https://repo1.maven.org/maven2/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.jar
    ==== typesafe-releases: tried
  https://repo.typesafe.com/typesafe/releases/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.pom
      -- artifact com.typesafe.activator#activator-launcher;1.3.10!activator-launcher.jar:
  https://repo.typesafe.com/typesafe/releases/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.jar
    ==== typesafe-ivy-releasez: tried
  https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.activator/activator-launcher/1.3.10/ivys/ivy.xml
        ::::::::::::::::::::::::::::::::::::::::::::::
        ::          UNRESOLVED DEPENDENCIES         ::
        ::::::::::::::::::::::::::::::::::::::::::::::
        :: com.typesafe.activator#activator-launcher;1.3.10: not found
        ::::::::::::::::::::::::::::::::::::::::::::::

:::: ERRORS
    Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.pom
    Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.jar
    Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo.typesafe.com/typesafe/releases/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.pom
    Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo.typesafe.com/typesafe/releases/com/typesafe/activator/activator-launcher/1.3.10/activator-launcher-1.3.10.jar
    Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.activator/activator-launcher/1.3.10/ivys/ivy.xml

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: com.typesafe.activator#activator-launcher;1.3.10: not found
Error during sbt execution: Error retrieving required libraries
  (see /home/j3d/.sbt/boot/update.log for complete log)
Error: Could not retrieve activator-launcher 1.3.10

进一步搜索,我发现在Ubuntu上有一个问题,可以像这里描述的那样解决。

相关内容

  • 没有找到相关文章

最新更新