解决方法 在项目的pom.xml中添加如下内容 <properties> <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> </properties>