I'm converting my ant build to maven using the ant plugin. When I try to compile my source code, I get this similar errors. Can someone help me with the resolution ?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project foundation: Compilation failure: Compilation failure: [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/util/jdbc/SqlProfiler.java:[333,55] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/util/jdbc/SqlListeners.java:[109,48] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/validator/ValidatorException.java:[59,42] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/Query.java:[37,66] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/DBTransactionManager.java:[54,60] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/txhistory/TxHistory.java:[132,86] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/DBPool.java:[260,47] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/txhistory/TxTable.java:[44,78] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/util/threadlocal/ThreadCache.java:[53,56] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/util/concurrent/AsyncList.java:[17,50] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/txhistory/TxHistoryUtils.java:[47,72] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/util/ReplacementBuffer.java:[162,69] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/util/AppEnv.java:[115,83] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/DBService.java:[457,58] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/service/Standalone.java:[86,13] try-with-resources is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable try-with-resources) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/service/Standalone.java:[88,52] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/thread/ThreadProperties.java:[22,77] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /C:/Foundation/foundation/src/main/java/com/mycompany/app/db/ThreadCacheConfig.java:[40,62] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) Hector Magnanao Jr. SCM Analyst Fieldglass, Inc. O: (331) 702-6142 M: (773) 474-3051 hector.magna...@sap.com www.fieldglass.com Fieldglass is now part of SAP This email contains confidential information. If you are not the intended recipient, do not read, distribute or reproduce this transmission (including any attachments). If you have received this email in error, please notify the sender by email reply.