Maven skip tests

后端 未结 8 2162
攒了一身酷
攒了一身酷 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: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
    

提交回复
热议问题