java - IntelliJ 中的 Maven 错误,但命令行中没有错误

标签 java maven intellij-idea

我使用的库如下。我该如何解决这个问题?

<repositories>
   <repository>
   <id>getui-nexus</id>
   <url>http://mvn.gt.igexin.com/nexus/content/repositories/releases/</url>
   </repository>
</repositories>


 <dependency>
        <groupId>com.gexin.platform</groupId>
        <artifactId>gexin-rp-sdk-http</artifactId>
        <version>4.0.1.7</version>
 </dependency>

它在 IntelliJ 中显示错误,但应用程序运行良好。

enter image description here

最佳答案

这不是一个错误;而是一个错误。它警告您,由于某种原因, gexin-rp-sdk-base 在您的依赖关系图中作为依赖关系出现(至少)两次。

它选择的是4.0.0.12版本。

参见Apache Maven Dependency Plugin了解详情。

关于java - IntelliJ 中的 Maven 错误,但命令行中没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42767065/

相关文章:

java - Box2d碰撞问题

maven - 在 GeoServer 中安装 GeoMesa Cassandra

unit-testing - 使用 Maven 项目将测试与 src 分开?

spring-boot - IntelliJ 2018.1 Spring Boot 集成测试问题

android-studio - Android Studio - IntelliJ 新 Java 类向导

java - 不访问日期选择器会出现转换错误

java - android中的activity需要Handler吗?

Java用正则表达式引用字符串解析

java.lang.ClassNotFoundException : org. apache.Struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

java - 我如何在 Intellij 中运行 "mvn install:install-file"