My Oracle Support Banner

Maven: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.52.215] failed: Connection timed out (Connection timed out) (Doc ID 2304463.1)

Last updated on MAY 15, 2023

Applies to:

Oracle SOA Suite - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

Trying to use Maven in a SOA environment fails with

Connect to repo.maven.apache.org:443 [repo.maven.apache.org/[<IP=XXX.XXX.XX.XXX>] failed: Connection timed out (Connection timed out)

eg:-

$ mvn com.oracle.maven:oracle-maven-sync:push -DoracleHome=$ORACLE_HOME
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/com/oracle/maven/oracle-maven-sync/maven-metadata.xml
[WARNING] Could not transfer metadata com.oracle.maven:oracle-maven-sync/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/<IP=XXX.XXX.XX.XXX>] failed: Connection timed out (Connection timed out)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer com.oracle.maven:oracle-maven-sync/maven-metadata.xml 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 metadata com.oracle.maven:oracle-maven-sync/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/<IP=XXX.XXX.XX.XXX>] failed: Connection timed out (Connection timed out)
[INFO]
[INFO] --- oracle-maven-sync:12.2.1-2-0:push (default-cli) @ standalone-pom ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/3.0.4/maven-plugin-api-3.0.4.pom
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/3.2.3/maven-artifact-3.2.3.pom
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-compat/3.2.3/maven-compat-3.2.3.pom
Downloading: https://repo.maven.apache.org/maven2/org/jdom/jdom/1.1/jdom-1.1.pom
Downloading: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commons-io-2.2.pom
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5/maven-install-plugin-2.5.pom
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/versions-maven-plugin/2.1/versions-maven-plugin-2.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:25 min
[INFO] Finished at: 2017-08-05T12:02:32-06:00
[INFO] Final Memory: 18M/724M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.oracle.maven:oracle-maven-sync:12.2.1-2-0:push (default-cli) on project standalone-pom: Execution default-cli of goal com.oracle.maven:oracle-maven-sync:12.2.1-2-0:push failed: Plugin com.oracle.maven:oracle-maven-sync:12.2.1-2-0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.oracle.maven:oracle-maven-sync:jar:12.2.1-2-0 -> org.apache.maven:maven-plugin-api:jar:3.0.4: Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:3.0.4: Could not transfer artifact org.apache.maven:maven-plugin-api:pom:3.0.4 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/<IP=XXX.XXX.XX.XXX>] failed: Connection timed out (Connection timed out) -> [Help 1]
[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/PluginResolutionException



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.