How do I package a Spring Boot application with maven without running the tests?

1

I'm developing an application with Spring Boot and every time I run the command mvn package it 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 package fails. How can I perform packaging without running the tests?

    
asked by anonymous 28.03.2018 / 16:43

1 answer

1

Simple, just perform add% value with% of variable true . The command looks like this:

mvn package -Dmaven.test.skip=true
    
28.03.2018 / 16:43