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

add compiler to pom.xml

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

reference

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

發佈了119 篇原創文章 · 獲贊 78 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章