我在Linux发行版上安装了Intellij IDEA Community 2017.3,我需要使用经过身份验证的代理才能上网。我有一个系统范围的代理,我已按照Intellij Community can't use http proxy for Maven中的说明配置了IntelliJ代理和maven jvm代理。 Maven项目运行良好(我可以在互联网上获取档案),我可以获得插件列表。
当我尝试从maven导入库时(在项目结构> Libraries> +>来自Maven )或当我在设置>下测试Artifactory或Nexus服务URL时构建,执行,部署>远程Jar存储库,我无法获得任何新库和默认网址的测试返回"没有发现任何存储库"。在想法日志中,我收到407错误:
2018-01-24 13:37:43,178 [ 284705] INFO - MavenRepositoryServicesManager - java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
java.io.IOException: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
at com.intellij.jarRepository.services.artifactory.ArtifactoryRepositoryService.findArtifacts(ArtifactoryRepositoryService.java:111)
at com.intellij.jarRepository.services.MavenRepositoryServicesManager.findArtifacts(MavenRepositoryServicesManager.java:121)
at com.intellij.jarRepository.JarRepositoryManager$2.run(JarRepositoryManager.java:304)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
请注意,我还在settings.xml
目录中配置了.m2
文件,并在IntelliJ外部进行了测试。它也可以正常工作。
我想还有另一个地方我应该指明代理信息,但我不知道在哪里。我的代理需要用户名和密码。