Maven install error: Dependency could not be resolved

后端 未结 6 1869
庸人自扰
庸人自扰 2020-11-27 23:33

I am using Maven 3.1.1. When I run mvn install I get the following error:

D:\\spring source>mvn install
[INFO] Scanning for projects...
[INFO         


        
6条回答
  •  半阙折子戏
    2020-11-28 00:10

    Probably a bit late to the party, but there appears to be an unknown host exception thrown out of maven even if the resource/dependency is unavailable at that address.

    Which could mean that the problem may actually be that you have a transitive dependency that is pointing you to the wrong version of a jar (or one that is transitively included multiple times - one of which may be an unresolvable version). (I see it's looking for version 2.8 of the plugin but you specified version 3.1.1, so it's likely you have another dependency transitively including the wrong version).

    You can exclude transitive inclusion of a dependency using the exclusions tag.

提交回复
热议问题