解决Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test方法

maven项目package test时报错

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project shop-order: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test failed: UTF- 8

解决方法

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>
        </plugins>
    </build>

猜你喜欢

转载自blog.csdn.net/kidkid1208/article/details/107763611
今日推荐