NutzCN Logo
问答 nutz book maven 启动 报错 Fatal error compiling: 无效的目标发行版
发布于 3092天前 作者 qq_868910ac 8088 次浏览 复制 上一个帖子 下一个帖子
标签:
[INFO] Scanning for projects...
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building nutzbook 2.8.1
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/nutz/nutz/1.r.57-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/nutz/nutz/1.r.57-SNAPSHOT/maven-metadata.xml (984 B at 0.2 KB/sec)
[INFO] Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/nutz/nutzwx/1.r.57-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/nutz/nutzwx/1.r.57-SNAPSHOT/maven-metadata.xml (986 B at 0.1 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ nutzbook ---
[INFO] Deleting E:\myEclipseWorkspaces\nutz-book-project\target
[INFO] 
[INFO] >>> jetty-maven-plugin:9.3.9.v20160517:run (default-cli) @ nutzbook >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nutzbook ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 40 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ nutzbook ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 147 source files to E:\myEclipseWorkspaces\nutz-book-project\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.550 s
[INFO] Finished at: 2016-06-04T14:24:23+08:00
[INFO] Final Memory: 16M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project nutzbook: Fatal error compiling: 无效的目标发行版: 1.8 -> [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

5 回复

必须是jdk8哦

是用的 1.8噢
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

maven用到的那个jdk肯定不是1.8

错了 错了 我运行的时候执行环境 是1.7

添加回复
请先登陆
回到顶部