maven - 在 Maven 中运行测试阶段,同时跳过验证和编译
问题描述
使用大型多模块 Maven 项目。想要运行阶段如下
mvn clean install -DskipTests
然后运行单元测试。但这失败了,即使代码已经编译
mvn surefire:test
解决方案
推荐阅读
- css - 仅针对特定 div 离线工作的 CSS 样式
- c++ - 如何正确使用 std::getline
- javascript - 带有 Vue CLI 的 Vue 2 - 如何使 src/static 静态以便我可以使用其中的图像?
- c# - C# 条件运算符
- python - 使用 python 或命令行组合 csv 文件会在输出文件中产生错误
- google-apps-script - 谷歌表格下拉“输入必须在指定范围内”。如何解决这个问题?
- flutter - Flutter web-禁用空格键滚动?
- azure - Azure 函数:限制并发服务总线消息的数量
- python - 想为我的案例实现“to_datetime”功能
- javascript - 减慢周期(for of)?