[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on

时间:2021-07-07 14:43:57

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project mavenGame: The parameters 'finalName' for goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar are missing or invalid -> [Help 1]

pom.xml文件里面没有定义红色字体部分的'finalName' 参数:

 <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.target.file.name>mavenGame</project.build.target.file.name>
</properties>

加上就好了!