标签: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