springboot打包跳过测试 如果需要切换线上环境,使用内网,本地不一个网段,不跳过测试会报错,无法打包。 加上下面代码可以跳过maven的测试: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin>