JDK 9+不支持clientBuilder.sslSocketFactory

问题描述 投票:4回答:1

我在Eclipse 4.7.0中的项目中出现以下错误。我有

jdk-9_windows-x64_bin.exe

研究:Pom。 XML

Mavan dependency Problem (1 item)
clientBuilder.sslSocketFactory not supported on JDK 9+

在mvn clean install上

 in http://repo.maven.apache.org/maven2 was cached in the local repository
, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM
 @ line 5, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
eclipse maven java-9
1个回答
1
投票

我遇到过同样的问题。当我尝试使用Java 9启动Eclipse时,它发生在我身上。确保Maven已更新,最新版本应支持Java 9。

如果您的目标是开发Java 9应用程序,那么在Eclipse仍然使用Java 8运行时可以这样做。对于Eclipse Oxygen 4.7.1,您必须安装现已过时且不再可用的Java 9 Support for Oxygen功能。

由于Oxygen.1a(4.7.1a)Eclipse默认支持Java 9,因此您应该更新Eclipse。

© www.soinside.com 2019 - 2024. All rights reserved.