maven打包遇到错误,Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test

对Pom文件进行配置(亲自尝试,已成功解决)

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.2</version>
            <!--这个版本根据自己-->
                <configuration>
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>
        </plugins>
    </build>    

 

posted @ 2019-12-02 15:04  编程小白1024  阅读(3485)  评论(0编辑  收藏  举报