小编Akl*_*aik的帖子

Java Play akka 项目从 jdk8 迁移到 jdk11

我正在尝试将使用 play 和 Akka 框架构建在 jdk8 上的项目迁移到 jdk11。在此过程中,我收到以下错误。有人可以让我知道为什么会抛出错误吗?以下是我正在使用的版本:

  • JDK-11
  • 斯卡拉 2.12.8
  • 播放 2.6.7
  • 阿卡 2.5.13

例外:

 java.lang.NumberFormatException: Not a version: 11
    at scala.util.PropertiesTrait$class.parts$1(Properties.scala:176)
    at scala.util.PropertiesTrait$class.isJavaAtLeast(Properties.scala:180)
    at scala.util.Properties$.isJavaAtLeast(Properties.scala:16)
    at play.dev.filewatch.FileWatchService$$anon$1.delegate$lzycompute(FileWatchService.scala:68)
    at play.dev.filewatch.FileWatchService$$anon$1.delegate(FileWatchService.scala:66)
    at play.dev.filewatch.FileWatchService$$anon$1.watch(FileWatchService.scala:79)
    at play.runsupport.Reloader.<init>(Reloader.scala:358)
    at play.runsupport.Reloader$.reloader$lzycompute$1(Reloader.scala:219)
    at play.runsupport.Reloader$.play$runsupport$Reloader$$reloader$1(Reloader.scala:219)
    at play.runsupport.Reloader$.startDevMode(Reloader.scala:229)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:79)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:79)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:102)
    at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:65)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.NumberFormatException: Not a version: 11
Run Code Online (Sandbox Code Playgroud)

scala akka playframework java-8 java-11

5
推荐指数
1
解决办法
791
查看次数

jenkins-github克隆失败,没有kex alg错误

我们一直在使用jenkins和github来构建应用程序。从过去的两天开始,jenkins无法从git中获取代码,并且在控制台中我发现错误是“ no kex alg”。有谁知道如何解决此错误?尽早提供任何帮助将不胜感激。

错误:获取远程回购“源”时
发生错误hudson.plugins.git.GitException:无法从hudson.plugins.git.GitSCM上的git@github.houston.entsvcs.net:Transportation-Seamless / tr-ace-config.git获取.fetchFrom(GitSCM.java:817)
原因:hudson.plugins.git.GitException:命令“ / usr / local / bin / git fetch --tags --progress git@github.houston.entsvcs.net:Transportation-Seamless /tr-ace-config.git + refs / heads / :refs / remotes / origin / “返回状态码128:stdout:
stderr:无kex alg
致命:远端意外挂断

git github jenkins

3
推荐指数
1
解决办法
2091
查看次数

我收到错误消息“返回代码是:401,ReasonPhrase:未经授权。” 尝试通过 jenkins 将工件部署到 nexus 时

我在“u01/jenkins/.m2/”中有我的 settings.xml 文件。这是我必须为 nexus 部署配置的地方吗?请指教

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jenktest: Failed to deploy artifacts: Could not transfer artifact tulsa.jenkins.test:jenktest:pom:0.0.1-20170905.090435-1 from/to snapshots (http://myhost:8081/nexus/content/repositories/snapshots): Failed to transfer file: http://myhost:8081/nexus/content/repositories/snapshots/tulsa/jenkins/test/jenktest/0.0.1-SNAPSHOT/jenktest-0.0.1-20170905.090435-1.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jenktest: Failed to deploy artifacts: Could not transfer artifact tulsa.jenkins.test:jenktest:pom:0.0.1-20170905.090435-1 from/to snapshots (http://204.26.165.206:8081/nexus/content/repositories/snapshots): Failed to transfer file: http://myhost:8081/nexus/content/repositories/snapshots/tulsa/jenkins/test/jenktest/0.0.1-SNAPSHOT/jenktest-0.0.1-20170905.090435-1.pom. Return code is: 401, ReasonPhrase: Unauthorized.
Run Code Online (Sandbox Code Playgroud)

nexus maven jenkins

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

jenkins ×2

akka ×1

git ×1

github ×1

java-11 ×1

java-8 ×1

maven ×1

nexus ×1

playframework ×1

scala ×1