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

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 apache

 

使用eclipse Maven 在構建的時候出現這個錯,多是eclipse裏的maven插件的版本更新以後,相應的POM.xml文件沒有更新,只須要把version裏的版本升高就好了。我升到了2.1.固然若是你的eclipse裏的maven插件版本不是最新的,可是卻用了最新的POM.xml,也是有可能形成這些錯誤的,反正調節版本就OK eclipse

            <plugin> maven

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

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

                <version>2.0</version>我在這裏把2.0改成了2.1 插件

                <executions> orm

                    <execution> xml

                        <phase>package</phase> ip

                        <goals> io

                            <goal>shade</goal>

                        </goals>

                        <configuration>

                            <transformers>

                                <transformer

            ---

                                </transformer>

                            </transformers>

                        </configuration>

                    </execution>

                </executions>

            </plugin>

相關文章
相關標籤/搜索