pom.xmlに以下を追加する
<properties> <skipTests>true</skipTests> </properties> --- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.16</version> <configuration> <skipTests>${skipTests}</skipTests> </configuration> </plugin>
テストをおこなうときは以下
mvn install -DskipTests=false