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

[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>

加上就好了!

上一篇:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of 3: mojo org.apache.maven.plugins:


下一篇:maven install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project*****