ITPub博客

首页 > 应用开发 > > 新建maven工程报错

新建maven工程报错

作者:choubou 时间:2019-09-18 15:18:01 0 删除 编辑

具体情况时这样的,公司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 为什么就不行了呢,官网是假的?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4548/viewspace-3159035/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-10-08

  • 博文量
    175
  • 访问量
    10711