There are 2 ways
Method 1: Use the command with parameters
mvn install -Dmaven.test.skip=true
Method 2: Configure in pom.xml
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>