maven 編譯這個(gè)項(xiàng)目是 報(bào)版本過低錯(cuò)誤
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project order: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] 錯(cuò)誤: 不再支持源選項(xiàng) 1.5。請使用 1.6 或更高版本。
[ERROR] 錯(cuò)誤: 不再支持目標(biāo)選項(xiàng) 1.5。請使用 1.6 或更高版本。
用的1.8。。。
2018-09-06
pom.xml文件中增加jdk的設(shè)置
<properties>內(nèi)增加
?<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
嘗試幾次后成了。。剛開始直接引用1.8的怎么都不成。。