[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.454 s
[INFO] Finished at: 2021-10-11T20:54:25+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project efak-common: Compilation failure: Compilation failure:
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/OwnerInfo.java:[33,53] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/MailSenderInfo.java:[46,61] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/JMXFactoryUtils.java:[56,73] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/topic/TopicPartitionSchema.java:[42,70] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/KafkaZKPoolUtils.java:[46,78] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/KafkaZKPoolUtils.java:[54,56] underscores in literals are not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable underscores in literals)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/OffsetZkInfo.java:[36,55] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/kraft/KafkaAsyncCloser.java:[52,39] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/kraft/KafkaAsyncCloser.java:[84,76] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/KafkaSqlInfo.java:[35,57] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/kraft/KafkaSchemaFactory.java:[48,51] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/WorkUtils.java:[39,44] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] -> [Help 1]
[ERROR]
[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]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :efak-common
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.454 s [INFO] Finished at: 2021-10-11T20:54:25+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project efak-common: Compilation failure: Compilation failure: [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/OwnerInfo.java:[33,53] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/MailSenderInfo.java:[46,61] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/JMXFactoryUtils.java:[56,73] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/topic/TopicPartitionSchema.java:[42,70] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/KafkaZKPoolUtils.java:[46,78] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/KafkaZKPoolUtils.java:[54,56] underscores in literals are not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable underscores in literals) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/OffsetZkInfo.java:[36,55] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/kraft/KafkaAsyncCloser.java:[52,39] lambda expressions are not supported in -source 1.5 [ERROR] (use -source 8 or higher to enable lambda expressions) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/kraft/KafkaAsyncCloser.java:[84,76] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/KafkaSqlInfo.java:[35,57] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/kraft/KafkaSchemaFactory.java:[48,51] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] /home/zhangyun/github/EFAK/efak-common/src/main/java/org/smartloli/kafka/eagle/common/util/WorkUtils.java:[39,44] diamond operator is not supported in -source 1.5 [ERROR] (use -source 7 or higher to enable diamond operator) [ERROR] -> [Help 1] [ERROR] [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] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :efak-common