Friday, January 13, 2017

Skip Maven tests in Intellij Idea

For skipping test during maven build process you can use next tips:

IN CONSOLE:

mvn install -Dmaven.test.skip=true

or 

mvn package -DskipTests


In IntelliJ IDEA:

1. Select step in IntellijIdea your want to modify and click Create button.



2. New Configuration task will apper in  "Run Configurations" tree.
3. Select it and click right mouse button. Then click "Edit"


4. In "Command Line" add -DskipTests=true
5. Apply new changes.