How to package a Spring Boot application with Maven without running the tests?

Asked

Viewed 115 times

1

I am developing an application with Spring Boot and every time I perform the command mvn package He runs my unit tests. However, my tests do not raise the server with the application to run the tests on it, because the database is not on my machine. With this, all tests generate error and the package failed. How can I perform packaging without running tests?

1 answer

1


Simple, just perform add value true the variable maven.test.skip. The command goes like this:

mvn package -Dmaven.test.skip=true

Browser other questions tagged

You are not signed in. Login or sign up in order to post.