打包时跳过单元测试

pull/62/head
zhengjie 2019-05-08 15:25:27 +08:00
parent a43711acf4
commit 3cde757b32
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,7 @@
package me.zhengjie;
import me.zhengjie.modules.monitor.service.RedisService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

14
pom.xml
View File

@ -198,6 +198,19 @@
</dependency>
</dependencies>
<build>
<plugins>
<!-- 打包时跳过测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>public</id>
@ -208,6 +221,7 @@
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>public</id>