MyEclipse中Maven项目运行maven install命令时出现错误怎么办?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project bluepoint-edi: Fatal error compiling: 无效的目标版本: 1.7 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

MyEclipse中Maven项目运行maven install命令时出现错误有可能是jdk配置错误导致编译无法进行。
说明:MAVEN对1.7的支持没问题,但是如果你遇到和jdk有关的莫名其妙的问题,可以尝试换个版本试试。
在本地Repository中安装jar:mvn install
举例:
mvn install:install-file -Dfile=osworkflow-2.8.0.jar -DpomFile=osworkflow-2.8.0.pom -Dsources=osworkflow-2.8.0-sources.jar -DgroupId=opensymphony -DartifactId=osworkflow -Dpackaging=jar -Dversion=2.8.0
温馨提示:内容为网友见解,仅供参考
第1个回答  推荐于2016-09-10
先clean一下吧。在dos中执行 进入你的项目下
maven clean然后

maven eclipse:clean
然后再maven eclipse:eclipse下,你试试。good luck~本回答被提问者采纳
相似回答