天天看點

mvn compile error : try-with-resources is not supported in -source 1.5

add compiler to pom.xml

<properties>
    <maven.compiler.source></maven.compiler.source>
    <maven.compiler.target></maven.compiler.target>
</properties>
           

reference

http://stackoverflow.com/questions/17300008/maven-giving-error-try-with-resources-is-not-supported-in-source-1-5