木初老狗
2018-12-03 08:00新建maven工程报错,该怎么解决?
具体情况是这样的,公司jdk为1.6 ,eclipse为kepler版本 ,为了和他们俩不冲突,我下载了maven3.2.5,然后各种配置。。。。。
新建maven项目pom第一行报错:org/apache/maven/plugins/war/WarMojo : Unsupported major.minor version 51.0
然后下面的plugin标签:Multiple annotations found at this line:
- CoreException: Could not get the value for parameter compilerId for plugin execution default- testCompile: TypeNotPresentException: Type org.apache.maven.plugin.compiler.TestCompilerMojo not present: UnsupportedClassVersionError: org/apache/maven/plugin/compiler/TestCompilerMojo : Unsupported major.minor version 51.0
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven- compiler-plugin:3.7.0:testCompile (execution: default-testCompile, phase: test-compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default- compile: TypeNotPresentException: Type org.apache.maven.plugin.compiler.CompilerMojo not present: UnsupportedClassVersionError: org/apache/maven/plugin/compiler/CompilerMojo : Unsupported major.minor version 51.0
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven- compiler-plugin:3.7.0:compile (execution: default-compile, phase: compile)
我真的不知道该怎么解决,网上都说jdk版本和maven冲突,我按照maven官网给出的jdk'版本对应要求下载的3.2.5 为什么就不行了呢,官网是假的?
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- IDEA工程建好了就报错
- maven
- intellij-idea
- tomcat
- 3个回答
- Maven中的test测试类ClassNotFoundException
- java
- maven
- intellij-idea
- 2个回答
- 我的MyEclipse2013新建的maven依赖工程,为什么加载不出Maven 呢?
- java
- maven
- eclipse
- 2个回答
- 新建maven工程报错,该怎么解决?
- jdk
- maven
- eclipse
- 2个回答
- 小白提问idea怎么创建maven 按照教程一直报错啊
- spring
- maven
- intellij-idea
- 4个回答
换一换