Maven skip tests

后端 未结 8 2135
攒了一身酷
攒了一身酷 2020-12-12 09:10

I am using Maven 2.2.1 and to build my project I used this command

mvn clean install -Dmaven.test.skip=true

However, the build failed sayin

相关标签:
8条回答
  • 2020-12-12 10:08

    The parameter -DskipTests may not work depending on your surefire-plugin version.

    You can use "-Dmaven.test.skip.exec" instead of "-DskipTests"

    Source: Surefire Parameter Details

    0 讨论(0)
  • 2020-12-12 10:09

    I had some inter-dependency with the tests in order to build the package.

    The following command manage to override the need for the test artifact in order to complete the goal:

    mvn -DskipTests=true  package
    
    0 讨论(0)
提交回复
热议问题