how to make maven release plugin skip tests?

后端 未结 5 2076
感动是毒
感动是毒 2021-02-03 19:59

I\'m running mvn release:prepare -Darguments=\"-Dmaven.test.skip=true -DskipTests\" on the master checkout of Spotify\'s docker-client. But I can\'t get maven\'s re

5条回答
  •  萌比男神i
    2021-02-03 20:26

    There are two things. First if you like to run a release you need to run mvn release:perform which really runs the step for the final release and not the mvn release:prepare. If you like to skip the tests in mvn release:prepare you should use mvn -Dmaven.test.skip=true plus the given arguments you have defined.

    Apart from that maven-surefire-plugin is defined in the default life cylce

提交回复
热议问题