我有这个pom.xml的专家
..
<properties>
<!-- Skip tests by default-->
<skipTests>true</skipTests>
<!-- Build complete package by default; use -Dskip.npm.install=true -Dskip.npm.build=true when working on backend code -->
<skip.npm.install>false</skip.npm.install>
<skip.npm.build>false</skip.npm.build>
<node.version>v10.13.0</node.version>
<springboot.version>2.0.3.RELEASE</springboot.version>
<kerberos.version>1.0.1.RELEASE</kerberos.version>
</properties>
..
我运行此命令是为了避免跳过测试,但是测试未运行
mvn test -Dmaven.test.skip = false
答案 0 :(得分:1)
用户属性为skipTests
,请使用
mvn test -DskipTests=false