2024-01-30

maven.test.skip.exec vs skipTests

 

Source URL: https://stackoverflow.com/a/21933970


"maven.test.skip.exec=true" the tests get compiled, but not executed.

"maven.test.skip=true" doesn't compile or execute the tests.

"-DskipTests" is the same as "maven.test.skip.exec=true"



pom.xml

<properties>

...

<skipTests>true</skipTests>

<!-- reference URL: https://www.cnblogs.com/mozq/p/12028198.html

https://stackoverflow.com/a/21933970

<skipTests>true</skipTests>

Deprecated : maven.test.skip.exec

-->
...

</properties>