IBM Support

Cannot establish a connection with the Maven Central Repository within the workbench using the IBM SDK

Technote (troubleshooting)


Problem(Abstract)

m2e connection attempts to the Maven Central Repository result in errors like the following:

Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from https://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. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Unable to find acceptable protocols. isFallback=false, modes=[ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_3DES_EDE_CBC_SHA], tlsVersions=[TLS_1_2, TLS_1_1, TLS_1_0], supportsTlsExtensions=true), ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_3DES_EDE_CBC_SHA], tlsVersions=[TLS_1_0], supportsTlsExtensions=true), ConnectionSpec()], supported protocols=[TLSv1, TLSv1.1, TLSv1.2]

Cause

This problem occurs because the IBM SDK has updated security requirements since version 8.0.4.1 and m2e uses an http client that attempts to create secure connections using protocols that are no longer considered safe by the IBM SDK.

Diagnosing the problem

The problem is applicable to workbenches configured to use the following components:

1. Eclipse Neon and Oxygen
2. IBM SDK 8.0.4.1 and up

The problem results in the error message described in the Abstract section being shown in error dialogs within the workbench or in the workspace .log file.


Resolving the problem

As a workaround to the problem, use the Apache Maven command line tools to run goals that require connectivity with the Maven Central Repository.


Steps:
1. Run the 'mvn install' or similar command from within the directory containing your project's pom.xml file.
2. Rebuild your project in the workbench using the Project > Clean... action
3. Right-click on the project within the workbench and select 'Refresh'

Document information

More support for: WebSphere Application Server Developer Tools for Eclipse
Documentation

Software version: 17.0.0.2

Operating system(s): Linux, Windows

Reference #: 2004877

Modified date: 26 June 2017