How I can update my maven project for jre 1.7 in eclipse. my other projects are using 1.7 or 1.8 but maven always created with jre 1.5. The strange is after updating java build to 1.7 again it going to 1.5 while do update or compile the project.
Code: Select all
[WARNING] The requested profile "property-overrides" could not be activated because it does not exist.
[WARNING] The requested profile "dev" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project DQITest: Compilation failure
[ERROR] /Users/test12/Documents/workspace/DQITest/src/main/java/PrepareQuery.java:[322,6] error: try-with-resources is not supported in -source 1.5
[ERROR] -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles: