How to configure maven install to skip tests in eclipse?

  1. Ensure Maven is configured for your project
  2. Right-click on your project
  3. Go to 'Run As'
  4. Select 'Run Configurations'
  5. In the left-hand column, right-click 'Maven Build' and select 'New'
  6. Select the base directory (the project) you want to build from
  7. Write 'install' and any other goals you want in the 'Goals' field
  8. Click the 'Skip Tests' radio button
  9. Click Run!

Hope that helps.


It depends on maven test plugin that you use. You can try add parameter -Dmaven.test.skip=true to your build configuration.


accordig to maven's document you can write this in you pom.xml:

<project>


[...]
<build>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.12</version>
    <configuration>
      <skipTests>true</skipTests>
    </configuration>
  </plugin>
</plugins>