码迷,mamicode.com
首页 > 其他好文 > 详细

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade

时间:2014-09-11 16:58:02      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   使用   ar   for   文件   art   sp   

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade (default) on project QMServer: Execution default of goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade failed: A required class was missing while executing org.apache.maven.plugins:maven-shade-plugin:2.0:shade: org/sonatype/aether/graph/DependencyNode

?

使用eclipse Maven 在构建的时候出现这个错,可能是eclipse里的maven插件的版本更新之后,相应的POM.xml文件没有更新,只需要把version里的版本升高就行了。我升到了2.1.当然如果你的eclipse里的maven插件版本不是最新的,但是却用了最新的POM.xml,也是有可能造成这些错误的,反正调节版本就OK

????????????<plugin>

????????????????<groupId>org.apache.maven.plugins</groupId>

????????????????<artifactId>maven-shade-plugin</artifactId>

????????????????<version>2.0</version>我在这里把2.0改为了2.1

????????????????<executions>

????????????????????<execution>

????????????????????????<phase>package</phase>

????????????????????????<goals>

????????????????????????????<goal>shade</goal>

????????????????????????</goals>

????????????????????????<configuration>

????????????????????????????<transformers>

????????????????????????????????<transformer

????????????---

????????????????????????????????</transformer>

????????????????????????????</transformers>

????????????????????????</configuration>

????????????????????</execution>

????????????????</executions>

????????????</plugin>

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade

标签:style   color   io   使用   ar   for   文件   art   sp   

原文地址:http://www.cnblogs.com/catbug/p/3966613.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!