首页 > 解决方案 > 在 Maven 中运行测试阶段,同时跳过验证和编译

问题描述

使用大型多模块 Maven 项目。想要运行阶段如下

mvn clean install -DskipTests

然后运行单元测试。但这失败了,即使代码已经编译

mvn surefire:test

标签: mavencontinuous-integrationmaven-surefire-pluginmvn-repo

解决方案


推荐阅读