代码改变世界

java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem

2014-08-28 14:43  programmer022  阅读(1675)  评论(0)    收藏  举报

maven com.github.goldin.plugins 报错
[INFO] --- copy-maven-plugin:0.2.5:copy 
[WARNING] Error injecting: com.github.goldin.plugins.copy.CopyMojo
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem;

[ERROR] Failed to execute goal com.github.goldin:copy-maven-plugin:0.2.5:copy (unpack-qzz) on project travel-destination: Execution unpack-qzz of goal com.github.goldin:copy-maven-plugin:0.2.5:copy failed: A required class was missing while executing com.github.goldin:copy-maven-plugin:0.2.5:copy: Lorg/sonatype/aether/RepositorySystem;

看maven官方提示是版本不兼容,所以我试了几个maven版本2.2.1 3.1.1 3.2.1 3.2.2 3.2.3都不行
最后换成3.0.5 3.0.4这两个版本是可以的、
maven的插件太多,官方测试不完全,插件开发者自己该测一下兼容性啊