在maven install的时候去掉test,因为有的时候test会去连接一些外面的资源,但是外面的资源并不可用,但是又无关紧要,所以可以暂时去掉。 命令如下: mvn clean install -Dmaven.test.skip