美文网首页
VS Code如何设置maven package跳过test操作

VS Code如何设置maven package跳过test操作

作者: 87d6dc4b11a7 | 来源:发表于2024-07-06 11:55 被阅读0次

可以修改pom.xml

<properties>
    <maven.test.skip>true</maven.test.skip>
</properties>

也可以改maven-surefire-plugin的配置

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

相关文章

网友评论

      本文标题:VS Code如何设置maven package跳过test操作

      本文链接:https://www.haomeiwen.com/subject/vwigcjtx.html