Clean lifecycle in Travis CI Maven build

155 views Asked by At

When I review .travis.yml configs I very often see mvn clean verify or mvn clean install.

Is there any point in invoking clean lifecycle in the Travis CI builds when it is first invocation of mvn in script? Are there any cases when clean might be necessary in fresh Travis build that has just started?

I understand why clean is needed in local environment when the state might not be clean, so In Maven, Why Run 'mvn clean'? does not answer my question.

0

There are 0 answers