javamaven

Maven package/install without test (skip tests)


I am trying to package my project. But, it automatically runs the tests previous do performing the packaging. The tests insert some content in the database. This is not what I want, I need to avoid running tests while package the application. Anybody knows how run the package with out test?


Solution

  • Run maven with

    mvn package -Dmaven.test.skip