maven 启动 报错 Fatal error compiling: 无效的目标发行版
Posted zhao1949
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven 启动 报错 Fatal error compiling: 无效的目标发行版相关的知识,希望对你有一定的参考价值。
http://news.tuxi.com.cn/news/119999990123162/31622105.html
http://lyking2001.iteye.com/blog/837440
针对Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1的解决方案
http://blog.csdn.net/u011734144/article/details/51894942
********************************************************************
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 Fatal error compiling: 无效的目 标发行版 jdk环境和mvn配置的jdk不一样
************************************
方式1、修改maven全局jdk
修改 安装目录\maven2\conf\settings.xml
- <profiles>
- <profile>
- <id>jdk-1.6</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- <jdk>1.6</jdk>
- </activation>
- <properties>
- <maven.compiler.source>1.6</maven.compiler.source>
- <maven.compiler.target>1.6</maven.compiler.target>
- <maven.compiler.compilerVersion>1.6</maven.compiler.compilerVersion>
- </properties>
- </profile>
- </profiles>
方式2、修改项目pom.xml
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
以上是关于maven 启动 报错 Fatal error compiling: 无效的目标发行版的主要内容,如果未能解决你的问题,请参考以下文章
已解决!Fatal error compiling: 无效的标记(maven启动失败)
启动jupyter报错 Fatal error in launcher: Unable to create process using '"h:pythonpython.exe&(示
启动jupyter报错 Fatal error in launcher: Unable to create process using '"h:pythonpython.exe&(示
mysql启动报错:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist