2017-09-25 316 views
2

我在Eclipse 4.7.0的項目中遇到以下錯誤。我有clientbuilder.sslSocketFactory在JDK 9+上不受支持

jdk-9_windows-x64_bin.exe 

資源:pom.xml的

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

上MVN全新安裝

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 
+0

你得到什麼錯誤? 'mvn install'?並可以分享更多的日誌痕跡請 – nullpointer

+0

eclipse自動構建我的項目,我通過日食標記窗口得到這個問題。如果我嘗試安裝maven:我得到錯誤:無法找到或加載主類org.codehaus.plexus.classworlds.launcher.Launcher 引起:java.lang.ClassNotFoundException:org.codehaus.plexus.classworlds.launcher.Launcher –

+0

確實運行'mvn clean install'也導致類似的失敗? – nullpointer

回答

0

我有同樣的問題。當我嘗試用Java 9啓動Eclipse時,發生了這種情況。確保Maven已更新,最新版本應該支持Java 9.

如果您的目標是開發Java 9應用程序,那麼您可以在Eclipse仍然運行時使用Java 8運行。您只需安裝Java 9 Support for Oxygen並按照該頁面上的說明進行操作。