Maven无法下载依赖项,并且在IntellIJ上留下了腐败的.jars

时间:2016-09-03 08:06:45

标签: java maven intellij-idea

我最近在使用Maven时遇到了问题。

我遇到了这个错误:

[WARNING] The POM for org.spigotmc:spigot-api:jar:1.9.4-R0.1-20160603.113501-25 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.spigotmc:spigot:jar:1.9.4-R0.1-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.j256.ormlite:ormlite-core:jar:4.48 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.j256.ormlite:ormlite-jdbc:jar:4.48 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for commons-dbcp:commons-dbcp:jar:1.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.bukkit:bukkit:jar:1.6.4-R2.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.google.code.gson:gson:jar:2.2.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for net.milkbowl.vault:VaultAPI:jar:1.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for code.aterstones:nickapi:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.inventivetalent:particleapi:jar:2.1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for redis.clients:jedis:jar:2.8.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.mongodb:mongo-java-driver:jar:3.3.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

Maven尝试从依赖项中下载JARS,但是失败并留下一个1kb的大jar(显然已损坏)。删除.m2文件夹没有做任何事情。

此错误也显示-X启用了以下错误:

[ERROR] 'modelVersion' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]
[ERROR] 'groupId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]
[ERROR] 'artifactId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]
[ERROR] 'version' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]

我尝试了以下内容:

  • 重新安装Windows完成
  • 使用最新的Maven而不是IntelliJ Bundled Maven
  • 将JRE和JDK更新为8.101
  • 禁用防火墙

我在Windows 10上使用IntelliJ Ultimate 16.2.3。

我错过了配置Maven的东西吗?在我的Surface上,项目运行并编译得很好,但是在我的电脑上却没有!

编辑:

完整日志:Full Log

POM:POM

注意:有关此错误的项目适用于我的其他PC!只是这台PC无法正常工作!

0 个答案:

没有答案