刚开始以为是包过期,后面发现是pom.xml中没有设置正确,正确设置需要添加<dependencies></dependencies>;添加commons-io、org.apache.httpcomponents依赖,没有下载成功时需要多进行尝试,尤其是clean,install
<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<!-- <dependency>
<groupId>org.apache.httpclient</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.3.5</version>
</dependency>
</dependencies>