pom文件中加入这一行就不报错了 <properties> <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> </properties>