eclipse无法下载依赖项org.apache.maven.plugins:maven-resources-plugin:2.4.3

时间:2018-08-18 18:23:52

标签: eclipse maven maven-2 maven-3 m2eclipse

我正在尝试为org.apache.maven.plugins:maven-resources-plugin:2.4.3下载Maven依赖项

但是日食给了我这些痕迹

Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
    at com.squareup.okhttp.Connection.connectTls(Connection.java:235)
    at com.squareup.okhttp.Connection.connectSocket(Connection.java:199)
    at com.squareup.okhttp.Connection.connect(Connection.java:172)
    at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:367)
    at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
    at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328)
    at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:245)
    at com.squareup.okhttp.Call.getResponse(Call.java:267)
    at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:224)
    at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:195)
    at com.squareup.okhttp.Call.execute(Call.java:79)
    at io.takari.aether.okhttp.OkHttpAetherClient.execute(OkHttpAetherClient.java:167)
    at io.takari.aether.okhttp.OkHttpAetherClient.get(OkHttpAetherClient.java:113)
    at io.takari.aether.connector.AetherRepositoryConnector$GetTask.resumableGet(AetherRepositoryConnector.java:600)
    at io.takari.aether.connector.AetherRepositoryConnector$GetTask.run(AetherRepositoryConnector.java:453)
    at io.takari.aether.connector.AetherRepositoryConnector.get(AetherRepositoryConnector.java:304)
    ... 39 more

我正在使用Maven 3.5版。我在某处检查过。这是由于协议版本错误引起的。同样,我已经设置了环境变量-MAVEN_OPTS = Dhttps.protocols = TLSv1,TLSv1.1,TLSv1.2

我正在使用Eclipse Mars.2版本(4.5.2)。

此外,我在eclipse.ini中进行了更改,以指向我的Java位置 -vm C:\ Program Files \ Java \ jdk1.7.0_80 \ bin \ javaw.exe

现在,为什么协议版本错误仍然存​​在。我该如何删除它。

我已经有解决方法。我可以使用终端通过maven下载依赖项。但是像往常一样,我清理Eclipse项目。它开始再次显示我错误。

此外,还有一些XML。 Eclipse向我显示错误

schema_reference.4: Failed to read schema document 'http://jboss.org/schema/cdi/beans_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) 
     the root element of the document is not <xsd:schema>.

如果我尝试打开上面的URL来查看XSD。在那里。

编辑过:有什么方法可以知道哪个eclipse用来下载依赖项以及哪个maven正在使用协议?

0 个答案:

没有答案