Skip to content

Connect to repo.maven.apache.org:443 failed: Operation timed out #10

Open
@huan

Description

@huan

When I'm running make install on my MacBook Pro with my China Mobile phone hotspot, I got the following networking error and can not install successfully.

$ make install
mvn clean install -f examples/pom.xml
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------< io.github.wechaty:wechaty-examples >-----------------
[INFO] Building wechaty-examples 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.pom
Downloading from central: https://repo.maven.apache.org/maven2/io/perfmark/perfmark-api/0.19.0/perfmark-api-0.19.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:32 min
[INFO] Finished at: 2020-05-24T15:18:38+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wechaty-examples: Could not resolve dependencies for project io.github.wechaty:wechaty-examples:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at io.github.wechaty:wechaty:jar:1.0.0-SNAPSHOT -> io.github.wechaty:wechaty-puppet-hostie:jar:1.0.0-SNAPSHOT -> io.github.wechaty:grpc:jar:0.11.25 -> io.grpc:grpc-netty-shaded:jar:1.25.0 -> io.grpc:grpc-core:jar:1.25.0 -> com.google.android:annotations:jar:4.1.1.4: Failed to read artifact descriptor for com.google.android:annotations:jar:4.1.1.4: Could not transfer artifact com.google.android:annotations:pom:4.1.1.4 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.pom: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.196.215] failed: Operation 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/DependencyResolutionException
make: *** [install] Error 1

It would be better if we can use a China mirror for the installation, and add the howto into the README so that our developers can use it with just copy/paste.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions