Can';如果IntelliJ IDEA支持代理,则不会导入任何下载的maven依赖项
我正在为公司代理服务器配置settings.xml,如下所示Can';如果IntelliJ IDEA支持代理,则不会导入任何下载的maven依赖项,maven,intellij-idea,proxy,Maven,Intellij Idea,Proxy,我正在为公司代理服务器配置settings.xml,如下所示 安全中心 安全中心 中心的 http://repo1.maven.org/maven2 真的 中心的 http://repo1.maven.org/maven2 真的 真的 http ***.***.***.*** **** ****** ****** www.google.com |*.example.com 并且有可能下载依赖项。但如果下载ok,当我尝试将某些内容导入类时,idea找不到任何下载的依赖项,并在顶级域级别之后标
安全中心
安全中心
中心的
http://repo1.maven.org/maven2
真的
中心的
http://repo1.maven.org/maven2
真的
真的
http
***.***.***.***
****
******
******
www.google.com |*.example.com
并且有可能下载依赖项。但如果下载ok,当我尝试将某些内容导入类时,idea找不到任何下载的依赖项,并在顶级域级别之后标记为红色。当我把点放在组织之后时,我只能看到基本库(默认情况下包括基本库)。比如说
在.m2文件夹中下载所有必要的库
在“设置”->“构建工具”->“默认设置所有项目”
成功下载任何新的依赖项
没有任何错误的pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId1</groupId>
<artifactId>untitled</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!-- selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
</dependencies>
</project>
4.0.0
组ID1
无标题
1.0-快照
org.seleniumhq.selenium
硒爪哇
3.4.0
有人知道吗?
任何建议都会有帮助
谢谢大家 尝试删除
.idea
目录,然后从pom.xml
重新导入项目。还要确保@CrazyCoder已经试过了,但IDEA仍然看不到我的依赖项,所有插件和依赖项都用红色下划线,在Maven Project Bar中,您使用的IntelliJ IDEA版本是什么?@CrazyCoder IntelliJ IDEA 2017.1.5 Build#IC-171.4694.70请参阅。idea.log可能有更多细节。
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId1</groupId>
<artifactId>untitled</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!-- selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
</dependencies>
</project>