You can prevent Maven from executing tests during the compilation process by adding the following option in the Run Configuration in IntelliJ:
-DskipTests=true
To do so, follow these steps:
Open the Run Configuration dialog in IntelliJ by selecting "Edit Configurations" from the drop-down menu next to the Run button.
Select the Maven project from the list of configurations.
In the "Command line" field, add -DskipTests=true
at the end of the command.
Click on "OK" to save the configuration.
Now, when you run the Maven project, IntelliJ will skip the test phase and only compile the code.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-08-22 11:00:00 +0000
Seen: 12 times
Last updated: Mar 21 '23
What is the process for establishing private environment variables for Cypress tests?
How can I prevent freezing when using Task.Wait in C#?
How can I prevent the modification of another object's property through reference?
Is it possible to prevent the override of the last printed line on the Linux terminal?
How can I prevent the LeafletJS page from jumping when a layer is clicked?
In ReactJS, how can I prevent the useEffect function from being triggered twice?
What is the solution to prevent a specific type of Exception from being logged in Logback?
How can I prevent the use of the TRACK HTTP method on Tomcat 8?
How can I place an image on the left side and prevent text from overlapping it?
How can I prevent TextInput from being hidden by the keyboard in react-native?