在eclipse中创建Maven安装时,我得到了-source1.5中不支持的所有类型的java错误。我的代码没有任何问题。org.apache.maven.plugins:maven-compiler-plugin:3.1[241,29] try-with-resources is not supported in -<em
我在IntelliJ、JDK1.8、maven 3.2.5中使用maven。编译错误:使用-source 7或更高版本启用菱形opera。:[31,55] diamond operator is not supported in -source1.5 (use -source 7 or higher to enable diamondoperator)
[ERROR] DTM.java:[79,21] try-with-resources is
/DBConnection.java:[223,50] diamond operator is not supported in -source1.5
(use -source 7 or higher/src/main/java/com/model/adv/DBConnection.java:[64,38] diamond operator is not suppor
/com/spoj/DivSum.java:[12,57] diamond operator is not supported in -source1.5
(use -source 7 or highermain/java/com/spoj/Test.java:[9,49] diamond operator is not supported in -source</em
我的问题很简单:有没有与Java版本7兼容的Maven-shade-plugin版本?特别是,当我尝试使用此插件时,我得到以下错误(使用Netbeans IDE): (use -source7 or higher to enable diamond operator)error: multi-catch statement is not suppo
:[31,30] error: diamond operator is not supported in -source1.5neo4jCMS/entity/Person.java:[44,28] error: lambda expressions are not supported in-source1.5
2 err