windows 下用jdtls 一直报错,无法连接https://repo.maven.apache.org/maven2

使用lsp-bridge,配置了jdtls, 可以正常运行,但是出不了补全的符号。 我项目是基于maven的,看jdtls的log,是连不上仓库。 有什么方法可以正确设置代理?看jdtls用的eclipse aether 项目,找不到文档。项目已经归档了。

Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.apache.maven.plugins:maven-resources-plugin:pom:3.3.1 (absent): org.apache.maven.plugins:maven-resources-plugin:pom:3.3.1 failed to transfer from Central Repository: during a previous attempt. This failure was cached in the local repository and resolution is not 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:3.3.1 from/to central (Central Repository:): Connection reset at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:473) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:261) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:243) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:234) … 40 more

如报错信息,连maven仓库超时了,需要看看网络

在命令行下用:curl Central Repository: 是可以正常连上的